Remove unnecessary nil check
This commit is contained in:
parent
d3a89b8744
commit
39c4a5bc1b
1 changed files with 1 additions and 1 deletions
|
|
@ -643,7 +643,7 @@ func isBlank(v interface{}) bool {
|
||||||
case string:
|
case string:
|
||||||
return vv != ""
|
return vv != ""
|
||||||
case []string:
|
case []string:
|
||||||
return vv != nil && len(vv) > 0
|
return len(vv) > 0
|
||||||
default:
|
default:
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue