build: Enable gometalinter "unconvert" check

This commit is contained in:
Jakob Borg
2016-12-17 15:37:11 +01:00
committed by Jakob Borg
parent 744c2e82b5
commit 47f22ff3e5
12 changed files with 17 additions and 15 deletions

View File

@@ -209,7 +209,7 @@ func blockKeyInto(o, hash []byte, folder uint32, file string) []byte {
}
o[0] = KeyTypeBlock
binary.BigEndian.PutUint32(o[keyPrefixLen:], folder)
copy(o[keyPrefixLen+keyFolderLen:], []byte(hash))
copy(o[keyPrefixLen+keyFolderLen:], hash)
copy(o[keyPrefixLen+keyFolderLen+keyHashLen:], []byte(file))
return o
}