Skip to content

Commit

Permalink
chore: Expose build.BuildTypeString()
Browse files Browse the repository at this point in the history
  • Loading branch information
placer14 committed Sep 22, 2021
1 parent b3816bc commit 574b5c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/panic_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func writeAppVersion(file string) {
}
defer f.Close() //nolint:errcheck

versionString := []byte(BuildVersion + buildType() + CurrentCommit + "\n")
versionString := []byte(BuildVersion + BuildTypeString() + CurrentCommit + "\n")
if _, err := f.Write(versionString); err != nil {
panicLog.Error(err.Error())
}
Expand Down
4 changes: 2 additions & 2 deletions build/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
BuildButterflynet = 0x7
)

func buildType() string {
func BuildTypeString() string {
switch BuildType {
case BuildDefault:
return ""
Expand Down Expand Up @@ -47,5 +47,5 @@ func UserVersion() string {
return BuildVersion
}

return BuildVersion + buildType() + CurrentCommit
return BuildVersion + BuildTypeString() + CurrentCommit
}

0 comments on commit 574b5c0

Please sign in to comment.