From e1862f0e2dc081a93eaf2074d4ecc01e8ecc151f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Anda=20Estensen?= Date: Tue, 30 Aug 2022 18:45:04 +0200 Subject: [PATCH] Omit type declaration of vars (#2476) --- server/events/post_workflow_hooks_command_runner_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/events/post_workflow_hooks_command_runner_test.go b/server/events/post_workflow_hooks_command_runner_test.go index 3a57af8ff..a7ba9d8e4 100644 --- a/server/events/post_workflow_hooks_command_runner_test.go +++ b/server/events/post_workflow_hooks_command_runner_test.go @@ -72,7 +72,7 @@ func TestRunPostHooks_Clone(t *testing.T) { t.Run("success hooks in cfg", func(t *testing.T) { postWorkflowHooksSetup(t) - var unlockCalled *bool = newBool(false) + unlockCalled := newBool(false) unlockFn := func() { unlockCalled = newBool(true) } @@ -157,7 +157,7 @@ func TestRunPostHooks_Clone(t *testing.T) { t.Run("error cloning", func(t *testing.T) { postWorkflowHooksSetup(t) - var unlockCalled *bool = newBool(false) + unlockCalled := newBool(false) unlockFn := func() { unlockCalled = newBool(true) } @@ -189,7 +189,7 @@ func TestRunPostHooks_Clone(t *testing.T) { t.Run("error running post hook", func(t *testing.T) { postWorkflowHooksSetup(t) - var unlockCalled *bool = newBool(false) + unlockCalled := newBool(false) unlockFn := func() { unlockCalled = newBool(true) }