From 9f6f3306e7b37e0d6e79daf78c0d1052623220f4 Mon Sep 17 00:00:00 2001 From: guessi Date: Fri, 16 Feb 2024 16:52:18 +0800 Subject: [PATCH] Simplify "if" block --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 0362c00..0058553 100644 --- a/main.go +++ b/main.go @@ -42,8 +42,7 @@ func main() { }, } - err := app.Run(os.Args) - if err != nil { + if err := app.Run(os.Args); err != nil { os.Exit(1) } }