Replaced util Min/Max functions with builtin

This commit is contained in:
Philipp Wolfer 2024-04-15 15:47:16 +02:00
parent 357932f9b0
commit bcc7bf3167
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
5 changed files with 4 additions and 34 deletions

View file

@ -33,7 +33,7 @@ func Similarity(s1 string, s2 string) float64 {
s2 = norm.NFKC.String(s2)
l1 := len([]rune(s1))
l2 := len([]rune(s2))
maxLen := util.Max(l1, l2)
maxLen := max(l1, l2)
// Empty strings always compare full equal
if maxLen == 0 {
return 1.0