chore: linter: intrange

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2025-10-23 22:48:54 +02:00
parent 465804161b
commit a1069a0d70
16 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -119,7 +119,7 @@ func CompareVersions(a, b string) Relation {
}
// First compare major-minor-patch versions
for i := 0; i < minlen; i++ {
for i := range minlen {
if arel[i] < brel[i] {
if i == 0 {
// major version difference
@@ -168,7 +168,7 @@ func CompareVersions(a, b string) Relation {
}
// Compare prerelease strings
for i := 0; i < minlen; i++ {
for i := range minlen {
switch av := apre[i].(type) {
case int:
switch bv := bpre[i].(type) {