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:
parent
56e040b80b
commit
cd41237fa5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user