From ee6688eb74c0d38d08fe675c246ee49df789cb0f Mon Sep 17 00:00:00 2001 From: Abirdcfly Date: Mon, 25 Jul 2022 04:56:02 +0800 Subject: [PATCH] delete minor unreachable code caused by log.Fatal (#2507) Signed-off-by: Abirdcfly --- cmd/micro/micro_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/micro/micro_test.go b/cmd/micro/micro_test.go index c5b64ef9..ba5c9a24 100644 --- a/cmd/micro/micro_test.go +++ b/cmd/micro/micro_test.go @@ -60,7 +60,6 @@ func startup(args []string) (tcell.SimulationScreen, error) { } // Print the stack trace too log.Fatalf(errors.Wrap(err, 2).ErrorStack()) - os.Exit(1) } }() @@ -171,7 +170,6 @@ func TestMain(m *testing.M) { sim, err = startup([]string{}) if err != nil { log.Fatalln(err) - os.Exit(1) } retval := m.Run() -- 2.44.0