mirror of
https://github.com/golang/go
synced 2024-11-27 02:31:18 -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:
parent
f2316c2789
commit
d18f186b9b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user