From b38b61bbc1f881f6f4d7fc887e658f9e8420b77c Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Mon, 12 Jun 2017 11:01:09 -0400 Subject: [PATCH] Fix import order (#1951) --- models/git_diff_test.go | 3 ++- models/issue_indexer.go | 1 + models/issue_milestone_test.go | 4 ++-- 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) {