mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-01 12:42:01 -07:00
[perf] evaluateBonus can start from sidx - 1
This commit is contained in:
@@ -10,14 +10,11 @@ import (
|
||||
)
|
||||
|
||||
// Max returns the largest integer
|
||||
func Max(first int, items ...int) int {
|
||||
max := first
|
||||
for _, item := range items {
|
||||
if item > max {
|
||||
max = item
|
||||
}
|
||||
func Max(first int, second int) int {
|
||||
if first >= second {
|
||||
return first
|
||||
}
|
||||
return max
|
||||
return second
|
||||
}
|
||||
|
||||
// Min returns the smallest integer
|
||||
|
Reference in New Issue
Block a user