From 5e439af1265dbee017fe458e81ed52bd55d344cc Mon Sep 17 00:00:00 2001 From: Lingchao Xin Date: Tue, 27 Feb 2018 19:24:36 +0800 Subject: [PATCH] Remove unreached os.Exit(1) log.Fatal will auto invoke os.Exit --- ch6-web/ch6-01-introduction.md | 1 - 1 file changed, 1 deletion(-) diff --git a/ch6-web/ch6-01-introduction.md b/ch6-web/ch6-01-introduction.md index f4feaec..0f220d7 100644 --- a/ch6-web/ch6-01-introduction.md +++ b/ch6-web/ch6-01-introduction.md @@ -45,7 +45,6 @@ func main() { err := http.ListenAndServe(":8080", nil) if err != nil { log.Fatal(err) - os.Exit(1) } }