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>
(cherry picked from commit e9f1b83a4a
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
31a938c73c
commit
bee5153c5b
|
@ -64,7 +64,6 @@ func withPluginInspect(name string, f func(*types.Plugin, poll.LogT) poll.Result
|
||||||
}
|
}
|
||||||
return f(plugin, t)
|
return f(plugin, t)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func withClient(t testing.TB, d *Daemon, f func(client.APIClient, poll.LogT) poll.Result) func(poll.LogT) poll.Result {
|
func withClient(t testing.TB, d *Daemon, f func(client.APIClient, poll.LogT) poll.Result) func(poll.LogT) poll.Result {
|
||||||
|
|
|
@ -96,7 +96,6 @@ func (f *Fake) addFile(file string, content []byte) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return os.WriteFile(fp, content, 0644)
|
return os.WriteFile(fp, content, 0644)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete a file at a path
|
// Delete a file at a path
|
||||||
|
|
|
@ -154,7 +154,6 @@ func pullTagAndRemove(ctx context.Context, client client.APIClient, ref string,
|
||||||
}
|
}
|
||||||
_, err = client.ImageRemove(ctx, ref, types.ImageRemoveOptions{})
|
_, err = client.ImageRemove(ctx, ref, types.ImageRemoveOptions{})
|
||||||
return errors.Wrapf(err, "failed to remove %s", ref)
|
return errors.Wrapf(err, "failed to remove %s", ref)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func readFrozenImageList(dockerfilePath string, images []string) (map[string]string, error) {
|
func readFrozenImageList(dockerfilePath string, images []string) (map[string]string, error) {
|
||||||
|
|
Loading…
Reference in New Issue