Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
simskij committed Apr 23, 2021
1 parent 68b5fb6 commit ba03684
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/actions/mocks/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func (client MockClient) IsContainerStale(c container.Container) (bool, error) {
return true, nil
}

// WarnOnHeadPullFailed is always true for the mock client
func (client MockClient) WarnOnHeadPullFailed(c container.Container) bool {
return true
}
}
2 changes: 1 addition & 1 deletion pkg/container/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var _ = Describe("the container", func() {
It("should return a client for the api", func() {
Expect(client).NotTo(BeNil())
})
Describe("WarnOnHeadPullFailed", func(){
Describe("WarnOnHeadPullFailed", func() {
containerUnknown := *mockContainerWithImageName("unknown.repo/prefix/imagename:latest")
containerKnown := *mockContainerWithImageName("docker.io/prefix/imagename:latest")

Expand Down

0 comments on commit ba03684

Please sign in to comment.