use go built-in min & max functions to replace lo.Min and lo.Max (#4007)

This commit is contained in:
fatedier
2024-02-19 21:27:56 +08:00
committed by GitHub
parent adb04e81e7
commit b6361fb143
2 changed files with 4 additions and 4 deletions

View File

@@ -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
}
}