From ba03684db2938533cfa2b286bb9b26af1ac9b5b3 Mon Sep 17 00:00:00 2001 From: Simon Aronsson Date: Fri, 23 Apr 2021 16:01:37 +0200 Subject: [PATCH] fix lint issues --- internal/actions/mocks/client.go | 3 ++- pkg/container/container_test.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/actions/mocks/client.go b/internal/actions/mocks/client.go index 01d004ea4..b17c98708 100644 --- a/internal/actions/mocks/client.go +++ b/internal/actions/mocks/client.go @@ -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 -} \ No newline at end of file +} diff --git a/pkg/container/container_test.go b/pkg/container/container_test.go index 6d2789fce..8ddeb8b64 100644 --- a/pkg/container/container_test.go +++ b/pkg/container/container_test.go @@ -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")