Skip to content

Commit

Permalink
decalre but don't initialise hadExit
Browse files Browse the repository at this point in the history
hadExit will be set to false as default

Co-authored-by: sarkar <[email protected]>
  • Loading branch information
mr-karan and shmsr committed Jul 11, 2022
1 parent 80ca796 commit ad4369d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func TestLogFormat(t *testing.T) {
buf.Reset()

// Fatal log
hadExit := false
var hadExit bool
exit = func() {
hadExit = true
}
Expand Down

0 comments on commit ad4369d

Please sign in to comment.