Skip to content

Commit dc73a11

Browse files
committed
simplify the change
1 parent 246ded3 commit dc73a11

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/common/thrift_util.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ func IsUseThriftDecoding(objs []interface{}) bool {
8686
// NOTE: our criteria to use which encoder is simple if all the types are de-serializable using thrift then we use
8787
// thrift decoder. For everything else we default to gob.
8888
for _, obj := range objs {
89-
rVal := reflect.ValueOf(obj)
90-
if rVal.Kind() != reflect.Ptr || !IsThriftType(obj) {
89+
if !IsThriftType(obj) {
9190
return false
9291
}
9392
}

0 commit comments

Comments
 (0)