chore: replace util.Min helper with built-in min (#3224)

This commit is contained in:
Eng Zer Jun
2024-04-13 20:16:22 +08:00
committed by GitHub
parent cb7886dc49
commit 3b550a8ab8
2 changed files with 2 additions and 10 deletions

View File

@ -41,13 +41,6 @@ func GenUUID() string {
return uuid.New().String()
}
func Min(x, y int) int {
if x < y {
return x
}
return y
}
var letters = []rune("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
// RandomString returns a random string with length n.