Skip to content

Commit

Permalink
Tidy init() branches (no-op)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHendrickson committed Jun 10, 2022
1 parent f07b71a commit e02d803
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/mydyndns/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ var (
)

func init() {
info, ok := debug.ReadBuildInfo()
if !ok {
return
if info, ok := debug.ReadBuildInfo(); ok {
Version = info.Main.Version
}
Version = info.Main.Version
}

// Execute runs the mydyndns CLI application
Expand Down

0 comments on commit e02d803

Please sign in to comment.