chore: add more tests (#2801)

This commit is contained in:
Kevin Wan
2023-01-17 21:55:36 +08:00
committed by GitHub
parent 4bed34090f
commit 10da5e0424
2 changed files with 26 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ func Repr(v interface{}) string {
}
val := reflect.ValueOf(v)
if val.Kind() == reflect.Ptr && !val.IsNil() {
for val.Kind() == reflect.Ptr && !val.IsNil() {
val = val.Elem()
}