You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-24 23:16:47 +02:00
fix bool test
This commit is contained in:
@ -25,9 +25,7 @@ func (any *objectLazyAny) LastError() error {
|
||||
}
|
||||
|
||||
func (any *objectLazyAny) ToBool() bool {
|
||||
iter := any.cfg.BorrowIterator(any.buf)
|
||||
defer any.cfg.ReturnIterator(iter)
|
||||
return iter.ReadObject() != ""
|
||||
return true
|
||||
}
|
||||
|
||||
func (any *objectLazyAny) ToInt() int {
|
||||
|
Reference in New Issue
Block a user