forked from mirror/go-json
Fix error by linter
This commit is contained in:
parent
b2bbd63168
commit
ef29061807
|
@ -201,6 +201,12 @@ func compileHead(ctx *compileContext) (*Opcode, error) {
|
||||||
return compileBoolPtr(ctx)
|
return compileBoolPtr(ctx)
|
||||||
}
|
}
|
||||||
return compileBool(ctx)
|
return compileBool(ctx)
|
||||||
|
case reflect.Interface:
|
||||||
|
ctx := ctx.withType(typ)
|
||||||
|
if isPtr {
|
||||||
|
return compileInterfacePtr(ctx)
|
||||||
|
}
|
||||||
|
return compileInterface(ctx)
|
||||||
default:
|
default:
|
||||||
if isPtr && typ.Implements(marshalTextType) {
|
if isPtr && typ.Implements(marshalTextType) {
|
||||||
typ = orgType
|
typ = orgType
|
||||||
|
|
Loading…
Reference in New Issue