1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-15 22:50:24 +02:00

optimize read nil/true/false

This commit is contained in:
Tao Wen
2017-01-18 23:33:40 +08:00
parent 6efc6c44ac
commit a73e48e8bf
8 changed files with 216 additions and 202 deletions

View File

@ -143,10 +143,6 @@ func (iter *Iterator) ReadStringAsSlice() (ret []byte) {
}
return copied
}
if c == 'n' {
iter.skipUntilBreak()
return
}
iter.reportError("ReadString", `expects " or n`)
return
}