From 87552f2e67e8ced36145400259ca1de1edfe87ed Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 23 Sep 2022 22:28:32 +0200 Subject: [PATCH] plugin: fix empty-lines (revive) plugin/v2/settable_test.go:24:29: empty-lines: extra empty line at the end of a block (revive) plugin/manager_linux.go:96:6: empty-lines: extra empty line at the end of a block (revive) plugin/backend_linux.go:373:16: empty-lines: extra empty line at the start of a block (revive) Signed-off-by: Sebastiaan van Stijn (cherry picked from commit 4eb9b5f20e142626adad1de8b2f2b5e0558b1d34) Signed-off-by: Sebastiaan van Stijn --- plugin/backend_linux.go | 1 - plugin/manager_linux.go | 1 - plugin/v2/settable_test.go | 1 - 3 files changed, 3 deletions(-) diff --git a/plugin/backend_linux.go b/plugin/backend_linux.go index be1cf73c31..8ca9b458a0 100644 --- a/plugin/backend_linux.go +++ b/plugin/backend_linux.go @@ -370,7 +370,6 @@ func (pm *Manager) Push(ctx context.Context, name string, metaHeader http.Header pusher, err := resolver.Pusher(ctx, ref.String()) if err != nil { - return errors.Wrap(err, "error creating plugin pusher") } diff --git a/plugin/manager_linux.go b/plugin/manager_linux.go index 7daaf6af40..a38afa3c09 100644 --- a/plugin/manager_linux.go +++ b/plugin/manager_linux.go @@ -112,7 +112,6 @@ func (pm *Manager) pluginPostStart(p *v2.Plugin, c *controller) error { shutdownPlugin(p, c.exitChan, pm.executor) return err } - } pm.config.Store.SetState(p, true) pm.config.Store.CallHandler(p) diff --git a/plugin/v2/settable_test.go b/plugin/v2/settable_test.go index f2bb0a482f..f8907a2dea 100644 --- a/plugin/v2/settable_test.go +++ b/plugin/v2/settable_test.go @@ -38,7 +38,6 @@ func TestNewSettable(t *testing.T) { if s.value != c.value { t.Fatalf("expected value to be %q, got %q", c.value, s.value) } - } }