From ad4369dfd16ac3fe238ef565102eb40b1aca8b93 Mon Sep 17 00:00:00 2001 From: Karan Sharma Date: Mon, 11 Jul 2022 15:49:52 +0530 Subject: [PATCH] decalre but don't initialise hadExit hadExit will be set to false as default Co-authored-by: sarkar --- log_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log_test.go b/log_test.go index cdd2a9a..22e6fe7 100644 --- a/log_test.go +++ b/log_test.go @@ -111,7 +111,7 @@ func TestLogFormat(t *testing.T) { buf.Reset() // Fatal log - hadExit := false + var hadExit bool exit = func() { hadExit = true }