mirror of
https://github.com/fatedier/frp.git
synced 2026-03-21 08:23:29 +08:00
use go built-in min & max functions to replace lo.Min and lo.Max (#4007)
This commit is contained in:
@@ -224,7 +224,7 @@ func (mhr *MakeHoleRecords) ReportSuccess(mode int, index int) {
|
||||
}
|
||||
|
||||
score.Score += 2
|
||||
score.Score = lo.Min([]int{score.Score, 10})
|
||||
score.Score = min(score.Score, 10)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user