Skip to content

Commit b3bbb2c

Browse files
committed
bump minimum go version to 1.23
Signed-off-by: Tim Ramlot <[email protected]>
1 parent 9a9f933 commit b3bbb2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/cert-manager/helm-tool
22

3-
go 1.21
3+
go 1.23
44

55
require (
66
github.com/Masterminds/sprig/v3 v3.3.0

linter/sets/prefix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func RemovePrefixes(items Set[string], sets ...Set[string]) Set[string] {
3838
return strings.Compare(aSort, bSort)
3939
})
4040

41-
for i := 0; i < len(values); i++ {
41+
for i := range values {
4242
// If the next value is an extension of the current value, remove
4343
// the current value.
4444
if i+1 < len(values) && (strings.HasPrefix(values[i+1], values[i]+".") || strings.HasPrefix(values[i+1], values[i]+"[")) {
@@ -66,7 +66,7 @@ func RemoveExtensions(items Set[string], sets ...Set[string]) Set[string] {
6666
})
6767

6868
OuterLoop:
69-
for i := 0; i < len(values); i++ {
69+
for i := range values {
7070
// Remove all following values that are extensions of the current value.
7171
for j := i + 1; j < len(values); j++ {
7272
if !strings.HasPrefix(values[j], values[i]+".") && !strings.HasPrefix(values[j], values[i]+"[") {

0 commit comments

Comments
 (0)