File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments