diff options
author | Luke Shumaker <lukeshu@datawire.io> | 2022-08-17 19:57:00 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@datawire.io> | 2022-08-17 19:57:00 -0600 |
commit | 3bd2e0e93647b806a68f06f319ea23511ec24a37 (patch) | |
tree | 0c0f56296d0fe49e34e23d7738aed4dd60ca32e1 /compat/json/borrowed_bench_test.go | |
parent | b2bf19e062ad1ce46dbf9107f5c3b47354f64d03 (diff) |
Get the borrowed files passing the linter
Diffstat (limited to 'compat/json/borrowed_bench_test.go')
-rw-r--r-- | compat/json/borrowed_bench_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compat/json/borrowed_bench_test.go b/compat/json/borrowed_bench_test.go index f5595ff..0155ff9 100644 --- a/compat/json/borrowed_bench_test.go +++ b/compat/json/borrowed_bench_test.go @@ -177,7 +177,9 @@ func BenchmarkUnicodeDecoder(b *testing.B) { if err := dec.Decode(&out); err != nil { b.Fatal("Decode:", err) } - r.Seek(0, 0) + if _, err := r.Seek(0, 0); err != nil { // MODIFIED: check the error + b.Fatal("Seek:", err) // MODIFIED: added + } // MODIFIED: added } } |