lint: simplify empty string check

This commit is contained in:
Umputun 2021-07-08 16:40:14 -05:00
parent 56e040b80b
commit cd41237fa5

View File

@ -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)