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