Skip to content

Commit

Permalink
Self review fix: use <=
Browse files Browse the repository at this point in the history
  • Loading branch information
alok87 committed Sep 13, 2021
1 parent 9811258 commit 8e96a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/random.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func Randomize(
}

gap := max - min
if gap == 0 || gap < 0 {
if gap <= 0 {
return min
}

Expand Down

0 comments on commit 8e96a1a

Please sign in to comment.