Skip to content

Commit ad4369d

Browse files
mr-karanshmsr
andcommitted
decalre but don't initialise hadExit
hadExit will be set to false as default Co-authored-by: sarkar <[email protected]>
1 parent 80ca796 commit ad4369d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

log_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func TestLogFormat(t *testing.T) {
111111
buf.Reset()
112112

113113
// Fatal log
114-
hadExit := false
114+
var hadExit bool
115115
exit = func() {
116116
hadExit = true
117117
}

0 commit comments

Comments
 (0)