Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
fxamacker committed May 31, 2022
1 parent 14069da commit 32d7f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapcollision_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type collisionDigester struct {
var _ Digester = &collisionDigester{}

func (d *collisionDigester) Digest(level uint) (Digest, error) {
if level < 0 || level >= d.Levels() {
if level >= d.Levels() {
return Digest(0), fmt.Errorf("invalid digest level %d", level)
}

Expand Down

0 comments on commit 32d7f2a

Please sign in to comment.