From bee5153c5b4126263108aeead5332bb9331dbf4e Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 23 Sep 2022 22:27:22 +0200 Subject: [PATCH] testutil: fix empty-lines (revive) testutil/fixtures/load/frozen.go:141:99: empty-lines: extra empty line at the end of a block (revive) testutil/daemon/plugin.go:56:129: empty-lines: extra empty line at the end of a block (revive) Signed-off-by: Sebastiaan van Stijn (cherry picked from commit e9f1b83a4a47a2d9ecf0d4e0c04ebb10c19ae86b) Signed-off-by: Sebastiaan van Stijn --- testutil/daemon/plugin.go | 1 - testutil/fakecontext/context.go | 1 - testutil/fixtures/load/frozen.go | 1 - 3 files changed, 3 deletions(-) diff --git a/testutil/daemon/plugin.go b/testutil/daemon/plugin.go index 98aa6063a902ad8a438685943e5a1b3608354975..4bf93c79b32446eafd071efadac5d00069e1d0b7 100644 --- a/testutil/daemon/plugin.go +++ b/testutil/daemon/plugin.go @@ -64,7 +64,6 @@ func withPluginInspect(name string, f func(*types.Plugin, poll.LogT) poll.Result } return f(plugin, t) } - } func withClient(t testing.TB, d *Daemon, f func(client.APIClient, poll.LogT) poll.Result) func(poll.LogT) poll.Result { diff --git a/testutil/fakecontext/context.go b/testutil/fakecontext/context.go index 7ab37cfe0ab5595ddcf77e4190e1209d4a0865b5..26f8b4a4ffb786b8a4f7690ada93e5005e32ae06 100644 --- a/testutil/fakecontext/context.go +++ b/testutil/fakecontext/context.go @@ -96,7 +96,6 @@ func (f *Fake) addFile(file string, content []byte) error { } } return os.WriteFile(fp, content, 0644) - } // Delete a file at a path diff --git a/testutil/fixtures/load/frozen.go b/testutil/fixtures/load/frozen.go index 6ea591b4f224c03e98a3c7fa4399a61fe386ef85..aba4345e665c3d7c90982e0e1d3566a2335c29e3 100644 --- a/testutil/fixtures/load/frozen.go +++ b/testutil/fixtures/load/frozen.go @@ -154,7 +154,6 @@ func pullTagAndRemove(ctx context.Context, client client.APIClient, ref string, } _, err = client.ImageRemove(ctx, ref, types.ImageRemoveOptions{}) return errors.Wrapf(err, "failed to remove %s", ref) - } func readFrozenImageList(dockerfilePath string, images []string) (map[string]string, error) {