all: Use some Go 1.21 features (#9409)

This commit is contained in:
Jakob Borg
2024-02-10 21:02:42 +01:00
committed by GitHub
parent 96c30f8387
commit e1dd36561d
13 changed files with 23 additions and 72 deletions
+1 -2
View File
@@ -7,7 +7,6 @@
package versioner
import (
"math"
"os"
"path/filepath"
"strings"
@@ -88,7 +87,7 @@ func TestSimpleVersioningVersionCount(t *testing.T) {
t.Error(err)
}
if float64(len(n)) != math.Min(float64(i), 2) {
if len(n) != min(i, 2) {
t.Error("Wrong count")
}