mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-01 15:55:49 +03:00
lint: simplify empty string check
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user