remove redundant parentheses (#9134)

Signed-off-by: jinglina <jinglinax@163.com>
This commit is contained in:
jinglina 2021-07-29 20:56:57 +08:00 committed by GitHub
parent c4f2e9eec5
commit 1a430e5f89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ func (b *bstream) writeByte(byt byte) {
}
func (b *bstream) writeBits(u uint64, nbits int) {
u <<= (64 - uint(nbits))
u <<= 64 - uint(nbits)
for nbits >= 8 {
byt := byte(u >> 56)
b.writeByte(byt)

View file

@ -386,7 +386,7 @@ func (cdm *ChunkDiskMapper) cut() (returnErr error) {
cdm.readPathMtx.Unlock()
}
mmapFile, err := fileutil.OpenMmapFileWithSize(newFile.Name(), int(MaxHeadChunkFileSize))
mmapFile, err := fileutil.OpenMmapFileWithSize(newFile.Name(), MaxHeadChunkFileSize)
if err != nil {
return err
}