]> git.lizzy.rs Git - micro.git/commitdiff
delete minor unreachable code caused by log.Fatal (#2507)
authorAbirdcfly <fp544037857@gmail.com>
Sun, 24 Jul 2022 20:56:02 +0000 (04:56 +0800)
committerGitHub <noreply@github.com>
Sun, 24 Jul 2022 20:56:02 +0000 (13:56 -0700)
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
cmd/micro/micro_test.go

index c5b64ef9d77af83fdd5f0f58e540b897c2404877..ba5c9a24b865bf9a76cd11979fceba8ebcd67ace 100644 (file)
@@ -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()