We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 246ded3 commit dc73a11Copy full SHA for dc73a11
internal/common/thrift_util.go
@@ -86,8 +86,7 @@ func IsUseThriftDecoding(objs []interface{}) bool {
86
// NOTE: our criteria to use which encoder is simple if all the types are de-serializable using thrift then we use
87
// thrift decoder. For everything else we default to gob.
88
for _, obj := range objs {
89
- rVal := reflect.ValueOf(obj)
90
- if rVal.Kind() != reflect.Ptr || !IsThriftType(obj) {
+ if !IsThriftType(obj) {
91
return false
92
}
93
0 commit comments