summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/issue_xref.go3
-rw-r--r--models/migrations/v210.go2
-rw-r--r--models/migrations/v210_test.go1
3 files changed, 4 insertions, 2 deletions
diff --git a/models/issue_xref.go b/models/issue_xref.go
index fdabedf29a..7b2f097c1c 100644
--- a/models/issue_xref.go
+++ b/models/issue_xref.go
@@ -195,7 +195,8 @@ func (issue *Issue) updateCrossReferenceList(list []*crossReference, xref *cross
// verifyReferencedIssue will check if the referenced issue exists, and whether the doer has permission to do what
func (issue *Issue) verifyReferencedIssue(stdCtx context.Context, ctx *crossReferencesContext, repo *repo_model.Repository,
- ref references.IssueReference) (*Issue, references.XRefAction, error) {
+ ref references.IssueReference,
+) (*Issue, references.XRefAction, error) {
refIssue := &Issue{RepoID: repo.ID, Index: ref.Index}
refAction := ref.Action
e := db.GetEngine(stdCtx)
diff --git a/models/migrations/v210.go b/models/migrations/v210.go
index cf50760b92..9da8ca9db6 100644
--- a/models/migrations/v210.go
+++ b/models/migrations/v210.go
@@ -11,8 +11,8 @@ import (
"strings"
"code.gitea.io/gitea/modules/timeutil"
- "github.com/tstranex/u2f"
+ "github.com/tstranex/u2f"
"xorm.io/xorm"
"xorm.io/xorm/schemas"
)
diff --git a/models/migrations/v210_test.go b/models/migrations/v210_test.go
index 3e10b3ce80..70dbe61b06 100644
--- a/models/migrations/v210_test.go
+++ b/models/migrations/v210_test.go
@@ -8,6 +8,7 @@ import (
"testing"
"code.gitea.io/gitea/modules/timeutil"
+
"github.com/stretchr/testify/assert"
"xorm.io/xorm/schemas"
)