diff --git a/internal/empty/empty.go b/internal/empty/empty.go index 4c517606a..ae0beb57a 100644 --- a/internal/empty/empty.go +++ b/internal/empty/empty.go @@ -33,7 +33,8 @@ func IsEmpty(value interface{}) bool { if value == nil { return true } - // It firstly checks the variable as common types using assertion, and then reflection. + // It firstly checks the variable as common types using assertion to enhance the performance, + // and then using reflection. switch value := value.(type) { case int: return value == 0