summaryrefslogtreecommitdiff
path: root/adapter_test.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@datawire.io>2022-08-14 17:05:38 -0600
committerLuke Shumaker <lukeshu@datawire.io>2022-08-14 20:31:42 -0600
commitc11411d3591de78417f9ded2ca443c366f92367e (patch)
treeb6d7c57e58858345e2caa9e41a9562b017cf68b4 /adapter_test.go
parent2ba5d96ccba101e6ccbf32b08e2fd18d4b8d7787 (diff)
decode: Switch over to Parser
Diffstat (limited to 'adapter_test.go')
-rw-r--r--adapter_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/adapter_test.go b/adapter_test.go
index b1aec3e..6c57ebc 100644
--- a/adapter_test.go
+++ b/adapter_test.go
@@ -5,7 +5,6 @@
package lowmemjson
import (
- "bufio"
"bytes"
"encoding/json"
"io"
@@ -76,8 +75,7 @@ func init() {
}
func (dec *Decoder) Buffered() io.Reader {
- buf := dec.r.(*bufio.Reader)
- dat, _ := buf.Peek(buf.Buffered())
+ dat, _ := dec.buf.Peek(dec.buf.Buffered())
return bytes.NewReader(dat)
}