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/cert.go | |
parent | 8a2347592d78548a54e35a71eb379ae3b8810bc6 (diff) | |
download | gitea-7826eae452360913b7c9e476566dc30601270c75.tar.gz gitea-7826eae452360913b7c9e476566dc30601270c75.zip |
#3045 fix DEPRECATED Action signature erorr
Diffstat (limited to 'cmd/cert.go')
-rw-r--r-- | cmd/cert.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/cert.go b/cmd/cert.go index 7b68f330ec..cd6972ea86 100644 --- a/cmd/cert.go +++ b/cmd/cert.go @@ -67,7 +67,7 @@ func pemBlockForKey(priv interface{}) *pem.Block { } } -func runCert(ctx *cli.Context) { +func runCert(ctx *cli.Context) error { if len(ctx.String("host")) == 0 { log.Fatal("Missing required --host parameter") } @@ -158,4 +158,6 @@ func runCert(ctx *cli.Context) { pem.Encode(keyOut, pemBlockForKey(priv)) keyOut.Close() log.Println("Written key.pem") + + return nil } |