Skip to content

Commit

Permalink
Fix version check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Dec 8, 2024
1 parent 6906c48 commit 504a0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var (

func Init() {
info, ok := debug.ReadBuildInfo()
if ok && info.Main.Version == "" {
if !ok || info.Main.Version == "" {
return
}

Expand Down

0 comments on commit 504a0da

Please sign in to comment.