1
0
mirror of https://github.com/umputun/reproxy.git synced 2024-11-24 08:12:31 +02:00

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)