Skip to content

Commit 51f98fa

Browse files
committed
change reflect.Pointer to reflect.Ptr (legacy)
1 parent 1c67af1 commit 51f98fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

table/util.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func objAsSlice(in interface{}) []interface{} {
7373
if in != nil {
7474
// dereference pointers
7575
val := reflect.ValueOf(in)
76-
if val.Kind() == reflect.Pointer && !val.IsNil() {
76+
if val.Kind() == reflect.Ptr && !val.IsNil() {
7777
in = val.Elem().Interface()
7878
}
7979

@@ -82,7 +82,7 @@ func objAsSlice(in interface{}) []interface{} {
8282
for i := 0; i < v.Len(); i++ {
8383
// dereference pointers
8484
v2 := v.Index(i)
85-
if v2.Kind() == reflect.Pointer && !v2.IsNil() {
85+
if v2.Kind() == reflect.Ptr && !v2.IsNil() {
8686
v2 = reflect.ValueOf(v2.Elem().Interface())
8787
}
8888

@@ -103,7 +103,7 @@ func objAsSlice(in interface{}) []interface{} {
103103
// remove trailing nil pointers
104104
for i := len(out) - 1; i >= 0; i-- {
105105
val := reflect.ValueOf(out[i])
106-
if val.Kind() == reflect.Pointer && val.IsNil() {
106+
if val.Kind() == reflect.Ptr && val.IsNil() {
107107
out = out[:i]
108108
} else {
109109
break

0 commit comments

Comments
 (0)