diff options
author | Matthias Loibl <mail@matthiasloibl.com> | 2016-11-05 17:56:35 +0100 |
---|---|---|
committer | Matthias Loibl <mail@matthiasloibl.com> | 2016-11-05 17:56:35 +0100 |
commit | 1f44b01e2a21b0e715dfd2ccad4574433c8775c3 (patch) | |
tree | 95959543a495b95b943dfeecad17668ea76dd6b2 /models | |
parent | 91b589f2f0fb93f9f9882426c43c363276d2235a (diff) | |
download | gitea-1f44b01e2a21b0e715dfd2ccad4574433c8775c3.tar.gz gitea-1f44b01e2a21b0e715dfd2ccad4574433c8775c3.zip |
Fix imports found by goimports.
Diffstat (limited to 'models')
-rw-r--r-- | models/git_diff.go | 10 | ||||
-rw-r--r-- | models/pull.go | 8 | ||||
-rw-r--r-- | models/repo.go | 11 |
3 files changed, 11 insertions, 18 deletions
diff --git a/models/git_diff.go b/models/git_diff.go index e3d5df2648..d5a6cf7daa 100644 --- a/models/git_diff.go +++ b/models/git_diff.go @@ -17,17 +17,15 @@ import ( "strings" "github.com/Unknwon/com" - "github.com/sergi/go-diff/diffmatchpatch" - "golang.org/x/net/html/charset" - "golang.org/x/text/transform" - - "github.com/gogits/git-module" - "github.com/go-gitea/gitea/modules/base" "github.com/go-gitea/gitea/modules/log" "github.com/go-gitea/gitea/modules/process" "github.com/go-gitea/gitea/modules/setting" "github.com/go-gitea/gitea/modules/template/highlight" + git "github.com/gogits/git-module" + "github.com/sergi/go-diff/diffmatchpatch" + "golang.org/x/net/html/charset" + "golang.org/x/text/transform" ) type DiffLineType uint8 diff --git a/models/pull.go b/models/pull.go index f582adccb0..2828c48a0d 100644 --- a/models/pull.go +++ b/models/pull.go @@ -12,15 +12,13 @@ import ( "time" "github.com/Unknwon/com" - "github.com/go-xorm/xorm" - - "github.com/gogits/git-module" - api "github.com/gogits/go-gogs-client" - "github.com/go-gitea/gitea/modules/log" "github.com/go-gitea/gitea/modules/process" "github.com/go-gitea/gitea/modules/setting" "github.com/go-gitea/gitea/modules/sync" + "github.com/go-xorm/xorm" + git "github.com/gogits/git-module" + api "github.com/gogits/go-gogs-client" ) var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength) diff --git a/models/repo.go b/models/repo.go index 990670940f..f9eaf19c4c 100644 --- a/models/repo.go +++ b/models/repo.go @@ -21,19 +21,16 @@ import ( "github.com/Unknwon/cae/zip" "github.com/Unknwon/com" - "github.com/go-xorm/xorm" - "github.com/mcuadros/go-version" - "gopkg.in/ini.v1" - - git "github.com/gogits/git-module" - api "github.com/gogits/go-gogs-client" - "github.com/go-gitea/gitea/modules/bindata" "github.com/go-gitea/gitea/modules/log" "github.com/go-gitea/gitea/modules/markdown" "github.com/go-gitea/gitea/modules/process" "github.com/go-gitea/gitea/modules/setting" "github.com/go-gitea/gitea/modules/sync" + "github.com/go-xorm/xorm" + git "github.com/gogits/git-module" + api "github.com/gogits/go-gogs-client" + ini "gopkg.in/ini.v1" ) const ( |