Skip to content

Commit 6410311

Browse files
authored
fix(buildinfo): remove handling of default case of reading build info (#630)
There was an issue that git commit and timestamp is not printed in reading the build info. This PR fixes the issue by removing the handling of default case in reading the build info. issue: none
1 parent e8d63d0 commit 6410311

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/buildinfo/buildinfo.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
const (
1616
VersionMajor = 1 // Major version component of the current release
1717
VersionMinor = 5 // Minor version component of the current release
18-
VersionPatch = 0 // Patch version component of the current release
18+
VersionPatch = 1 // Patch version component of the current release
1919
VersionMeta = "stable" // Version metadata to append to the version string
2020
)
2121

@@ -97,8 +97,6 @@ func get() (hash string, timestamp string) { //nolint:nonamedreturns // Disambig
9797
hash = s.Value[:hashLen]
9898
case "vcs.time":
9999
timestamp = s.Value
100-
default:
101-
return hash, timestamp
102100
}
103101
}
104102

0 commit comments

Comments
 (0)