summaryrefslogtreecommitdiffstats
path: root/cmd/serve.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-05-12 14:32:28 -0400
committerUnknwon <u@gogs.io>2016-05-12 14:32:28 -0400
commit7826eae452360913b7c9e476566dc30601270c75 (patch)
treec0062ef2ed630c280fc4919f6d645a1aee87aed6 /cmd/serve.go
parent8a2347592d78548a54e35a71eb379ae3b8810bc6 (diff)
downloadgitea-7826eae452360913b7c9e476566dc30601270c75.tar.gz
gitea-7826eae452360913b7c9e476566dc30601270c75.zip
#3045 fix DEPRECATED Action signature erorr
Diffstat (limited to 'cmd/serve.go')
-rw-r--r--cmd/serve.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd/serve.go b/cmd/serve.go
index 83d8f8763a..2759e1b575 100644
--- a/cmd/serve.go
+++ b/cmd/serve.go
@@ -129,7 +129,7 @@ func handleUpdateTask(uuid string, user, repoUser *models.User, reponame string,
}
}
-func runServ(c *cli.Context) {
+func runServ(c *cli.Context) error {
if c.IsSet("config") {
setting.CustomConf = c.String("config")
}
@@ -138,7 +138,7 @@ func runServ(c *cli.Context) {
if setting.SSH.Disabled {
println("Gogs: SSH has been disabled")
- return
+ return nil
}
if len(c.Args()) < 1 {
@@ -149,7 +149,7 @@ func runServ(c *cli.Context) {
if len(cmd) == 0 {
println("Hi there, You've successfully authenticated, but Gogs does not provide shell access.")
println("If this is unexpected, please log in with password and setup Gogs under another user.")
- return
+ return nil
}
verb, args := parseCmd(cmd)
@@ -290,4 +290,6 @@ func runServ(c *cli.Context) {
fail("Internal error", "UpdatePublicKey: %v", err)
}
}
+
+ return nil
}