Skip to content

Commit aabf71d

Browse files
estensenkrrrr38
authored andcommitted
Omit type declaration of vars (runatlantis#2476)
1 parent 7d0e4b3 commit aabf71d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/events/post_workflow_hooks_command_runner_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func TestRunPostHooks_Clone(t *testing.T) {
7272
t.Run("success hooks in cfg", func(t *testing.T) {
7373
postWorkflowHooksSetup(t)
7474

75-
var unlockCalled *bool = newBool(false)
75+
unlockCalled := newBool(false)
7676
unlockFn := func() {
7777
unlockCalled = newBool(true)
7878
}
@@ -157,7 +157,7 @@ func TestRunPostHooks_Clone(t *testing.T) {
157157
t.Run("error cloning", func(t *testing.T) {
158158
postWorkflowHooksSetup(t)
159159

160-
var unlockCalled *bool = newBool(false)
160+
unlockCalled := newBool(false)
161161
unlockFn := func() {
162162
unlockCalled = newBool(true)
163163
}
@@ -189,7 +189,7 @@ func TestRunPostHooks_Clone(t *testing.T) {
189189
t.Run("error running post hook", func(t *testing.T) {
190190
postWorkflowHooksSetup(t)
191191

192-
var unlockCalled *bool = newBool(false)
192+
unlockCalled := newBool(false)
193193
unlockFn := func() {
194194
unlockCalled = newBool(true)
195195
}

0 commit comments

Comments
 (0)