From cd41237fa53131835e67a54737495965aaa475a1 Mon Sep 17 00:00:00 2001 From: Umputun Date: Thu, 8 Jul 2021 16:40:14 -0500 Subject: [PATCH] lint: simplify empty string check --- app/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.go b/app/main.go index 7985471..37cabc1 100644 --- a/app/main.go +++ b/app/main.go @@ -491,7 +491,7 @@ func sizeParse(inp string) (uint64, error) { func splitAtCommas(s string) []string { cleanup := func(s string) string { - if len(s) == 0 { + if s == "" { return s } res := strings.TrimSpace(s)