Skip to content

Commit ee6688e

Browse files
authored
delete minor unreachable code caused by log.Fatal (#2507)
Signed-off-by: Abirdcfly <[email protected]>
1 parent ad70480 commit ee6688e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cmd/micro/micro_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ func startup(args []string) (tcell.SimulationScreen, error) {
6060
}
6161
// Print the stack trace too
6262
log.Fatalf(errors.Wrap(err, 2).ErrorStack())
63-
os.Exit(1)
6463
}
6564
}()
6665

@@ -171,7 +170,6 @@ func TestMain(m *testing.M) {
171170
sim, err = startup([]string{})
172171
if err != nil {
173172
log.Fatalln(err)
174-
os.Exit(1)
175173
}
176174

177175
retval := m.Run()

0 commit comments

Comments
 (0)