summaryrefslogtreecommitdiffstats
path: root/cmd/serv.go
diff options
context:
space:
mode:
authorkolaente <konrad@kola-entertainments.de>2019-06-12 21:41:28 +0200
committertechknowlogick <techknowlogick@gitea.io>2019-06-12 15:41:28 -0400
commitf9ec2f89f2265bc1371a6c62359de9816534fa6b (patch)
treef48b138a457e5ac6cf843bbb38400926704370f7 /cmd/serv.go
parent5832f8d90df2d72cb38698c3e9050f2b29717dc7 (diff)
downloadgitea-f9ec2f89f2265bc1371a6c62359de9816534fa6b.tar.gz
gitea-f9ec2f89f2265bc1371a6c62359de9816534fa6b.zip
Add golangci (#6418)
Diffstat (limited to 'cmd/serv.go')
-rw-r--r--cmd/serv.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/serv.go b/cmd/serv.go
index c0cb3cd50f..c1c8fd3a97 100644
--- a/cmd/serv.go
+++ b/cmd/serv.go
@@ -30,7 +30,6 @@ import (
)
const (
- accessDenied = "Repository does not exist or you do not have access"
lfsAuthenticateVerb = "git-lfs-authenticate"
)
@@ -67,7 +66,7 @@ func checkLFSVersion() {
}
func setup(logPath string) {
- log.DelLogger("console")
+ _ = log.DelLogger("console")
setting.NewContext()
checkLFSVersion()
}
@@ -112,7 +111,9 @@ func runServ(c *cli.Context) error {
}
if len(c.Args()) < 1 {
- cli.ShowSubcommandHelp(c)
+ if err := cli.ShowSubcommandHelp(c); err != nil {
+ fmt.Printf("error showing subcommand help: %v\n", err)
+ }
return nil
}