summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2022-09-23 22:27:22 +0200
committerSebastiaan van Stijn <github@gone.nl>2022-09-28 01:58:50 +0200
commite9f1b83a4a47a2d9ecf0d4e0c04ebb10c19ae86b (patch)
tree94c90afde5aab8e6b50c5e0a06fdb457a05637cb
parent786e6d80baa3d79966d5df80f36010cc690f2871 (diff)
downloaddocker-e9f1b83a4a47a2d9ecf0d4e0c04ebb10c19ae86b.tar.gz
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 <github@gone.nl>
-rw-r--r--testutil/daemon/plugin.go1
-rw-r--r--testutil/fakecontext/context.go1
-rw-r--r--testutil/fixtures/load/frozen.go1
3 files changed, 0 insertions, 3 deletions
diff --git a/testutil/daemon/plugin.go b/testutil/daemon/plugin.go
index 98aa6063a9..4bf93c79b3 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 7ab37cfe0a..26f8b4a4ff 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 6ea591b4f2..aba4345e66 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) {