Skip to content

Commit

Permalink
labels: make lint happy
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
  • Loading branch information
bboreham committed Jul 6, 2022
1 parent bafea98 commit 5b5091b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/labels/labels.go
Expand Up @@ -742,7 +742,7 @@ func sizeVarint(x uint64) (n int) {
n += 2
}
if x >= 1<<7 {
n += 1
n++
}
return n + 1
}
Expand All @@ -762,7 +762,7 @@ func encodeVarint(data []byte, offset int, v uint64) int {
// Special code for the common case that a size is less than 128
func encodeSize(data []byte, offset, v int) int {
if v < 1<<7 {
offset -= 1
offset--
data[offset] = uint8(v)
return offset
}
Expand Down

0 comments on commit 5b5091b

Please sign in to comment.