mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-19 07:15:34 -04:00
delete minor unreachable code caused by log.Fatal (#2507)
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
This commit is contained in:
parent
ad70480de7
commit
ee6688eb74
@ -60,7 +60,6 @@ func startup(args []string) (tcell.SimulationScreen, error) {
|
|||||||
}
|
}
|
||||||
// Print the stack trace too
|
// Print the stack trace too
|
||||||
log.Fatalf(errors.Wrap(err, 2).ErrorStack())
|
log.Fatalf(errors.Wrap(err, 2).ErrorStack())
|
||||||
os.Exit(1)
|
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
@ -171,7 +170,6 @@ func TestMain(m *testing.M) {
|
|||||||
sim, err = startup([]string{})
|
sim, err = startup([]string{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
os.Exit(1)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
retval := m.Run()
|
retval := m.Run()
|
||||||
|
Loading…
Reference in New Issue
Block a user