Browse Source

Fix import order (#1951)

Ethan Koenig 2 years ago
parent
commit
b38b61bbc1
3 changed files with 5 additions and 3 deletions
  1. 2 1
      models/git_diff_test.go
  2. 1 0
      models/issue_indexer.go
  3. 2 2
      models/issue_milestone_test.go

+ 2 - 1
models/git_diff_test.go

@@ -1,9 +1,10 @@
1 1
 package models
2 2
 
3 3
 import (
4
-	dmp "github.com/sergi/go-diff/diffmatchpatch"
5 4
 	"html/template"
6 5
 	"testing"
6
+
7
+	dmp "github.com/sergi/go-diff/diffmatchpatch"
7 8
 )
8 9
 
9 10
 func assertEqual(t *testing.T, s1 string, s2 template.HTML) {

+ 1 - 0
models/issue_indexer.go

@@ -13,6 +13,7 @@ import (
13 13
 	"code.gitea.io/gitea/modules/log"
14 14
 	"code.gitea.io/gitea/modules/setting"
15 15
 	"code.gitea.io/gitea/modules/util"
16
+
16 17
 	"github.com/blevesearch/bleve"
17 18
 	"github.com/blevesearch/bleve/analysis/analyzer/simple"
18 19
 	"github.com/blevesearch/bleve/search/query"

+ 2 - 2
models/issue_milestone_test.go

@@ -5,13 +5,13 @@
5 5
 package models
6 6
 
7 7
 import (
8
+	"sort"
8 9
 	"testing"
10
+	"time"
9 11
 
10 12
 	api "code.gitea.io/sdk/gitea"
11 13
 
12 14
 	"github.com/stretchr/testify/assert"
13
-	"sort"
14
-	"time"
15 15
 )
16 16
 
17 17
 func TestMilestone_State(t *testing.T) {