1
0
mirror of https://github.com/golang/go synced 2024-11-23 07:00:05 -07:00

crypto/md5: unnecessary conversion

Fixes go lint warning.

Change-Id: I5a7485a4c8316b81e6aa50b95fe75e424f2fcedc
Reviewed-on: https://go-review.googlesource.com/109055
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
ludweeg 2018-04-23 16:20:32 +03:00 committed by Brad Fitzpatrick
parent f2316c2789
commit d18f186b9b

View File

@ -64,7 +64,7 @@ func (d *digest) MarshalBinary() ([]byte, error) {
b = appendUint32(b, d.s[2])
b = appendUint32(b, d.s[3])
b = append(b, d.x[:d.nx]...)
b = b[:len(b)+len(d.x)-int(d.nx)] // already zero
b = b[:len(b)+len(d.x)-d.nx] // already zero
b = appendUint64(b, d.len)
return b, nil
}