Skip to content

Commit 504a0da

Browse files
committed
Fix version check logic
1 parent 6906c48 commit 504a0da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var (
1111

1212
func Init() {
1313
info, ok := debug.ReadBuildInfo()
14-
if ok && info.Main.Version == "" {
14+
if !ok || info.Main.Version == "" {
1515
return
1616
}
1717

0 commit comments

Comments
 (0)