1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-12-18 03:56:30 +00:00

cksum: golint

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-03-16 16:10:24 -04:00
parent b3198b462b
commit bdf5887f64

View file

@ -10,7 +10,7 @@ const posixPolynomial uint32 = 0x04C11DB7
func cksum(r io.Reader) (uint32, int, error) {
in := bufio.NewReader(r)
count := 0
var sum uint32 = 0
var sum uint32
f := func(b byte) {
for i := 7; i >= 0; i-- {
msb := sum & (1 << 31)