summaryrefslogtreecommitdiff
path: root/decode_scan.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@datawire.io>2022-08-17 19:20:52 -0600
committerLuke Shumaker <lukeshu@datawire.io>2022-08-17 19:20:52 -0600
commitb2bf19e062ad1ce46dbf9107f5c3b47354f64d03 (patch)
tree742b1cd56b7e008312cf0fe582e077696232a594 /decode_scan.go
parentcbd5679fa554573506318deb62f5648dbffe027e (diff)
Get the linter passing (even if it means ignoring borrowed files)
Diffstat (limited to 'decode_scan.go')
-rw-r--r--decode_scan.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/decode_scan.go b/decode_scan.go
index 2830d0b..fb8a6ec 100644
--- a/decode_scan.go
+++ b/decode_scan.go
@@ -64,7 +64,7 @@ func (sc *runeTypeScannerImpl) Reset() {
sc.rErr = nil
}
// tell it to use that rType and rErr
- sc.UnreadRune()
+ _ = sc.UnreadRune() // we set it up to always succeed
}
}
@@ -74,7 +74,7 @@ func (sc *runeTypeScannerImpl) ReadRuneType() (rune, int, RuneType, error) {
// do nothing
case sc.repeat:
if _, ok := sc.inner.(io.RuneScanner); ok {
- sc.inner.ReadRune()
+ _, _, _ = sc.inner.ReadRune()
}
default:
var err error