diff --git a/internal/checker/default/string/main.go b/internal/checker/default/string/main.go index aadd55a..78d62a3 100644 --- a/internal/checker/default/string/main.go +++ b/internal/checker/default/string/main.go @@ -2,7 +2,6 @@ package main import ( "git.xdrm.io/go/aicra/driver" - "reflect" ) func main() {} @@ -20,8 +19,8 @@ func (sck StringChecker) Check(value interface{}) bool { return false } - kind := reflect.TypeOf(value).Kind() + _, ok := value.(string) - return kind == reflect.String + return ok }