diff options
author | Unknwon <u@gogs.io> | 2016-05-12 14:32:28 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-05-12 14:32:28 -0400 |
commit | 7826eae452360913b7c9e476566dc30601270c75 (patch) | |
tree | c0062ef2ed630c280fc4919f6d645a1aee87aed6 /cmd/update.go | |
parent | 8a2347592d78548a54e35a71eb379ae3b8810bc6 (diff) | |
download | gitea-7826eae452360913b7c9e476566dc30601270c75.tar.gz gitea-7826eae452360913b7c9e476566dc30601270c75.zip |
#3045 fix DEPRECATED Action signature erorr
Diffstat (limited to 'cmd/update.go')
-rw-r--r-- | cmd/update.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/update.go b/cmd/update.go index aca2a7cbe7..08d5d89e10 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -24,7 +24,7 @@ var CmdUpdate = cli.Command{ }, } -func runUpdate(c *cli.Context) { +func runUpdate(c *cli.Context) error { if c.IsSet("config") { setting.CustomConf = c.String("config") } @@ -33,7 +33,7 @@ func runUpdate(c *cli.Context) { if len(os.Getenv("SSH_ORIGINAL_COMMAND")) == 0 { log.GitLogger.Trace("SSH_ORIGINAL_COMMAND is empty") - return + return nil } args := c.Args() @@ -53,4 +53,6 @@ func runUpdate(c *cli.Context) { if err := models.AddUpdateTask(&task); err != nil { log.GitLogger.Fatal(2, "AddUpdateTask: %v", err) } + + return nil } |