goInception icon indicating copy to clipboard operation
goInception copied to clipboard

fix minor unreachable code caused by log.Fatal

Open Abirdcfly opened this issue 3 years ago • 0 comments

Signed-off-by: Abirdcfly [email protected]

see https://go.dev/play/p/9LyttbdJpv7 for example:

package main

import "log"

func main() {
	log.Fatalf("this line will print and exit")
	log.Fatalf("this line can't print")
}

/* output:
2009/11/10 23:00:00 this line will print and exit

Program exited.
*/

Abirdcfly avatar Aug 10 '22 03:08 Abirdcfly