Made linter happy in cmd folder

This commit is contained in:
Thomas Boerger 2016-11-04 12:42:18 +01:00
parent 212a04a45e
commit 5b5af7daee
No known key found for this signature in database
GPG key ID: 5A388F55283960B6
7 changed files with 14 additions and 5 deletions

View file

@ -48,6 +48,7 @@ import (
"github.com/go-gitea/gitea/routers/user"
)
// CmdWeb represents the available web sub-command.
var CmdWeb = cli.Command{
Name: "web",
Usage: "Start Gogs web server",
@ -60,6 +61,7 @@ and it takes care of all the other things for you`,
},
}
// VerChecker is a listing of required dependency versions.
type VerChecker struct {
ImportPath string
Version func() string
@ -99,7 +101,7 @@ func checkVersion() {
for _, c := range checkers {
if !version.Compare(c.Version(), c.Expected, ">=") {
log.Fatal(4, `Dependency outdated!
Package '%s' current version (%s) is below requirement (%s),
Package '%s' current version (%s) is below requirement (%s),
please use following command to update this package and recompile Gogs:
go get -u %[1]s`, c.ImportPath, c.Version(), c.Expected)
}