a moved case of nakedret
Signed-off-by: Kai Xia <kaix+github@fastmail.com>
This commit is contained in:
1 parent
b190e6e910
commit
9be1cd6277
1 file changed
+4
-6
@@ -37,15 +37,13 @@ func FormatVersion() string {
|
||||
}
|
||||
|
||||
// FormatBuildInfo returns build time and go version info
|
||||
func FormatBuildInfo() (build string, goVer string) {
|
||||
if buildTime != "" {
|
||||
build = buildTime
|
||||
}
|
||||
goVer = goVersion
|
||||
func FormatBuildInfo() (string, string) {
|
||||
build := buildTime
|
||||
goVer := goVersion
|
||||
if goVer == "" {
|
||||
goVer = runtime.Version()
|
||||
}
|
||||
return
|
||||
return build, goVer
|
||||
}
|
||||
|
||||
// GetVersion returns the version string
|
||||
|
||||
Reference in new issue
Block a user