1
0
mirror of https://github.com/golang/go synced 2024-11-17 01:14:53 -07:00

encoding/base64: remove ineffectual assignment in test

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

View File

@ -175,7 +175,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)
}