From 9f72cda36c96279ee26d608305e68b5725d0ad2f Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Sun, 28 Aug 2022 16:45:30 +0200 Subject: [PATCH] For consistency's sake --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8c2aebf..51ba761 100644 --- a/main.go +++ b/main.go @@ -56,7 +56,7 @@ func isError(err error) bool { func readJson() { envPath, isSet := os.LookupEnv("CHARSHEET") switch { - case pathFlag != "": + case len(pathFlag) > 0: path = pathFlag case isSet: path = envPath