mirror of
https://github.com/FiloSottile/age.git
synced 2026-04-14 00:36:57 +00:00
internal/stream: remove unused variable from testRoundTrip (#396)
This commit is contained in:
@@ -79,10 +79,6 @@ func testRoundTrip(t *testing.T, stepSize, length int) {
|
||||
n = 0
|
||||
readBuf := make([]byte, stepSize)
|
||||
for n < length {
|
||||
b := length - n
|
||||
if b > stepSize {
|
||||
b = stepSize
|
||||
}
|
||||
nn, err := r.Read(readBuf)
|
||||
if err != nil {
|
||||
t.Fatalf("Read error at index %d: %v", n, err)
|
||||
|
||||
Reference in New Issue
Block a user