From 9b8c7c64453882c2c122d5d0a0d5ca0dc38b029f Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 19 Feb 2019 10:53:06 +0800 Subject: [PATCH] remove build num Signed-off-by: Bo-Yi Wu --- main.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 461e0b3..925e624 100644 --- a/main.go +++ b/main.go @@ -11,8 +11,7 @@ import ( // Version set at compile-time var ( - Version string - BuildNum string + Version string ) func main() { @@ -20,6 +19,7 @@ func main() { app.Name = "telegram plugin" app.Usage = "telegram plugin" app.Action = run + app.Version = Version app.Flags = []cli.Flag{ cli.StringFlag{ Name: "token", @@ -227,12 +227,6 @@ func main() { }, } - app.Version = Version - - if BuildNum != "" { - app.Version = app.Version + "+" + BuildNum - } - if err := app.Run(os.Args); err != nil { log.Fatal(err) }