From c9347a064793e8969878713e65353193f58820d5 Mon Sep 17 00:00:00 2001 From: Jeeyong Um Date: Mon, 30 Aug 2021 01:14:20 +0900 Subject: [PATCH] docs: remove return code in normal case from go built-in example (#6841) An explicit exit prevents the deferred cleanup code from running. In this case, falling off the end of main will achieve the same goal as an explicit exit. --- docs/tutorials/go-built-in.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/tutorials/go-built-in.md b/docs/tutorials/go-built-in.md index 81325706b..e94fe171e 100644 --- a/docs/tutorials/go-built-in.md +++ b/docs/tutorials/go-built-in.md @@ -388,7 +388,6 @@ func main() { c := make(chan os.Signal, 1) signal.Notify(c, os.Interrupt, syscall.SIGTERM) <-c - os.Exit(0) } func newTendermint(app abci.Application, configFile string) (*nm.Node, error) { @@ -564,7 +563,6 @@ defer func() { c := make(chan os.Signal, 1) signal.Notify(c, os.Interrupt, syscall.SIGTERM) <-c -os.Exit(0) ``` ## 1.5 Getting Up and Running