From 1092523ce2b73fe3855e970d933ab421b7c21c63 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Thu, 2 Feb 2017 08:58:28 +0800 Subject: [PATCH] Fix check length for Array, Map, Slice --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.go b/utils.go index dc55e336..9ddcc65b 100644 --- a/utils.go +++ b/utils.go @@ -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()