From fc66a0715aad2a52a6d7f9535d0a9a583b7f0707 Mon Sep 17 00:00:00 2001 From: John Guo Date: Fri, 25 Dec 2020 01:44:07 +0800 Subject: [PATCH] comment updates for package internal/empty --- internal/empty/empty.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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