Fix check length for Array, Map, Slice

This commit is contained in:
Jinzhu 2017-02-02 08:58:28 +08:00
parent e4b130d2d7
commit 1092523ce2
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ func fileWithLineNum() string {
func isBlank(value reflect.Value) bool {
switch value.Kind() {
case reflect.Array, reflect.Map, reflect.Slice, reflect.String:
case reflect.String:
return value.Len() == 0
case reflect.Bool:
return !value.Bool()