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 compileBool(ctx)
|
||||
case reflect.Interface:
|
||||
ctx := ctx.withType(typ)
|
||||
if isPtr {
|
||||
return compileInterfacePtr(ctx)
|
||||
}
|
||||
return compileInterface(ctx)
|
||||
default:
|
||||
if isPtr && typ.Implements(marshalTextType) {
|
||||
typ = orgType
|
||||
|
|
Loading…
Reference in New Issue