summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-06-12 11:01:09 -0400
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-06-12 10:01:09 -0500
commitb38b61bbc1f881f6f4d7fc887e658f9e8420b77c (patch)
treea858d5b59d00edd38411552025571aa0b31f9c51
parent635273cea68400a718806bb1603c5f62a4e66e04 (diff)
downloadgitea-b38b61bbc1f881f6f4d7fc887e658f9e8420b77c.tar.gz
gitea-b38b61bbc1f881f6f4d7fc887e658f9e8420b77c.zip
Fix import order (#1951)
-rw-r--r--models/git_diff_test.go3
-rw-r--r--models/issue_indexer.go1
-rw-r--r--models/issue_milestone_test.go4
3 files changed, 5 insertions, 3 deletions
diff --git a/models/git_diff_test.go b/models/git_diff_test.go
index f88e6fb610..acdae2005e 100644
--- a/models/git_diff_test.go
+++ b/models/git_diff_test.go
@@ -1,9 +1,10 @@
package models
import (
- dmp "github.com/sergi/go-diff/diffmatchpatch"
"html/template"
"testing"
+
+ dmp "github.com/sergi/go-diff/diffmatchpatch"
)
func assertEqual(t *testing.T, s1 string, s2 template.HTML) {
diff --git a/models/issue_indexer.go b/models/issue_indexer.go
index be74bb24f2..c2cb8b429e 100644
--- a/models/issue_indexer.go
+++ b/models/issue_indexer.go
@@ -13,6 +13,7 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"
+
"github.com/blevesearch/bleve"
"github.com/blevesearch/bleve/analysis/analyzer/simple"
"github.com/blevesearch/bleve/search/query"
diff --git a/models/issue_milestone_test.go b/models/issue_milestone_test.go
index aa4038dc6e..7926b348c3 100644
--- a/models/issue_milestone_test.go
+++ b/models/issue_milestone_test.go
@@ -5,13 +5,13 @@
package models
import (
+ "sort"
"testing"
+ "time"
api "code.gitea.io/sdk/gitea"
"github.com/stretchr/testify/assert"
- "sort"
- "time"
)
func TestMilestone_State(t *testing.T) {