mirror of
https://github.com/prometheus/prometheus
synced 2026-05-01 07:30:30 +08:00
remove redundant parentheses (#9134)
Signed-off-by: jinglina <jinglinax@163.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user