1
0
mirror of https://github.com/golang/go synced 2024-09-29 05:24:32 -06:00

encoding/base32: remove ineffectual assignment in test

This commit is contained in:
Leon Klingele 2019-01-30 18:08:20 +01:00
parent 56c9f8e8cf
commit 2758c46204
No known key found for this signature in database
GPG Key ID: 0C8AF48831EEC211

View File

@ -119,7 +119,7 @@ func TestDecoder(t *testing.T) {
testEqual(t, "Read from %q = length %v, want %v", p.encoded, count, len(p.decoded))
testEqual(t, "Decoding of %q = %q, want %q", p.encoded, string(dbuf[0:count]), p.decoded)
if err != io.EOF {
count, err = decoder.Read(dbuf)
_, err = decoder.Read(dbuf)
}
testEqual(t, "Read from %q = %v, want %v", p.encoded, err, io.EOF)
}