code refactor
This commit is contained in:
parent
e8d907156c
commit
8feb2287cc
|
@ -28,9 +28,7 @@ var (
|
|||
help *bool
|
||||
conf *string
|
||||
|
||||
version = "No Version Provided"
|
||||
gitHash = "No GitHash Provided"
|
||||
buildTime = "No BuildTime Provided"
|
||||
version = "No Version Provided"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -41,8 +39,6 @@ func init() {
|
|||
|
||||
if *vers {
|
||||
fmt.Println("Version:", version)
|
||||
fmt.Println("Git Commit Hash:", gitHash)
|
||||
fmt.Println("UTC Build Time:", buildTime)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
|
|
@ -32,9 +32,7 @@ var (
|
|||
help *bool
|
||||
conf *string
|
||||
|
||||
version = "No Version Provided"
|
||||
gitHash = "No GitHash Provided"
|
||||
buildTime = "No BuildTime Provided"
|
||||
version = "No Version Provided"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -45,8 +43,6 @@ func init() {
|
|||
|
||||
if *vers {
|
||||
fmt.Println("Version:", version)
|
||||
fmt.Println("Git Commit Hash:", gitHash)
|
||||
fmt.Println("UTC Build Time:", buildTime)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
|
|
@ -29,9 +29,7 @@ var (
|
|||
help *bool
|
||||
conf *string
|
||||
|
||||
version = "No Version Provided"
|
||||
gitHash = "No GitHash Provided"
|
||||
buildTime = "No BuildTime Provided"
|
||||
version = "No Version Provided"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -42,8 +40,6 @@ func init() {
|
|||
|
||||
if *vers {
|
||||
fmt.Println("Version:", version)
|
||||
fmt.Println("Git Commit Hash:", gitHash)
|
||||
fmt.Println("UTC Build Time:", buildTime)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
|
|
@ -28,9 +28,7 @@ var (
|
|||
help *bool
|
||||
conf *string
|
||||
|
||||
version = "No Version Provided"
|
||||
gitHash = "No GitHash Provided"
|
||||
buildTime = "No BuildTime Provided"
|
||||
version = "No Version Provided"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -41,8 +39,6 @@ func init() {
|
|||
|
||||
if *vers {
|
||||
fmt.Println("Version:", version)
|
||||
fmt.Println("Git Commit Hash:", gitHash)
|
||||
fmt.Println("UTC Build Time:", buildTime)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue