forked from mirror/go-json
Fix error by linter
This commit is contained in:
parent
98de7ff51b
commit
a57bc23adf
3
codec.go
3
codec.go
|
@ -14,10 +14,8 @@ const (
|
||||||
var (
|
var (
|
||||||
cachedOpcodeSets []*opcodeSet
|
cachedOpcodeSets []*opcodeSet
|
||||||
cachedOpcodeMap unsafe.Pointer // map[uintptr]*opcodeSet
|
cachedOpcodeMap unsafe.Pointer // map[uintptr]*opcodeSet
|
||||||
existsCachedOpcodeSets bool
|
|
||||||
cachedDecoder []decoder
|
cachedDecoder []decoder
|
||||||
cachedDecoderMap unsafe.Pointer // map[uintptr]decoder
|
cachedDecoderMap unsafe.Pointer // map[uintptr]decoder
|
||||||
existsCachedDecoder bool
|
|
||||||
baseTypeAddr uintptr
|
baseTypeAddr uintptr
|
||||||
maxTypeAddr uintptr
|
maxTypeAddr uintptr
|
||||||
)
|
)
|
||||||
|
@ -69,7 +67,6 @@ func setupCodec() error {
|
||||||
return fmt.Errorf("too big address range %d", addrRange)
|
return fmt.Errorf("too big address range %d", addrRange)
|
||||||
}
|
}
|
||||||
cachedOpcodeSets = make([]*opcodeSet, addrRange)
|
cachedOpcodeSets = make([]*opcodeSet, addrRange)
|
||||||
existsCachedOpcodeSets = true
|
|
||||||
cachedDecoder = make([]decoder, addrRange)
|
cachedDecoder = make([]decoder, addrRange)
|
||||||
baseTypeAddr = min
|
baseTypeAddr = min
|
||||||
maxTypeAddr = max
|
maxTypeAddr = max
|
||||||
|
|
Loading…
Reference in New Issue