Skip to content

Commit fb828c7

Browse files
Fix ineffectual assignment
1 parent 77a4958 commit fb828c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cache/core/core_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ func ExampleFound_GetRange() {
188188
}
189189

190190
// If we try to read an invalid range (from > to), we get an error:
191-
body, err := f.GetRange(3, 1)
191+
_, err = f.GetRange(3, 1)
192192
if err == nil {
193193
panic("accepted invalid range")
194194
}
195195

196196
// We can use "0" as a signal value to say "everything to the end":
197-
body, err = f.GetRange(3, 0)
197+
body, err := f.GetRange(3, 0)
198198
if err == nil {
199199
panic("accepted invalid range")
200200
}

0 commit comments

Comments
 (0)