Skip to content

Commit 3824eec

Browse files
committed
drop line, run modernize
1 parent 6119b25 commit 3824eec

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

models/migrations/v1_22/v294_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
package v1_22 //nolint
55

66
import (
7-
"slices"
87
"testing"
98

109
"code.gitea.io/gitea/models/migrations/base"
@@ -44,7 +43,6 @@ func Test_AddUniqueIndexForProjectIssue(t *testing.T) {
4443
for _, index := range tables[0].Indexes {
4544
if index.Type == schemas.UniqueType {
4645
found = true
47-
assert.True(t, slices.Equal(index.Cols, []string{"project_id", "issue_id"}))
4846
break
4947
}
5048
}

services/packages/arch/vercmp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func parseEVR(evr string) (epoch, version, release string) {
3535
func compareSegments(a, b []string) int {
3636
lenA, lenB := len(a), len(b)
3737
l := min(lenA, lenB)
38-
for i := 0; i < l; i++ {
38+
for i := range l {
3939
if r := compare(a[i], b[i]); r != 0 {
4040
return r
4141
}

0 commit comments

Comments
 (0)