From 80b1e2e54224720c7b5f798c8c0a6c7ba4545fa5 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 13:04:15 +0800 Subject: *.go: Linting --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 3552cba..8f9482d 100644 --- a/main.go +++ b/main.go @@ -40,5 +40,8 @@ func main() { clog.Fatal(1, "Listening: "+err.Error()) } - http.Serve(listener, nil) + err = http.Serve(listener, nil) + if err != nil { + clog.Fatal(1, "Serving: "+err.Error()) + } } -- cgit v1.2.3