From e02d803e72eadbd280f3539e130dcb8f12e185b6 Mon Sep 17 00:00:00 2001 From: TylerHendrickson Date: Fri, 10 Jun 2022 14:59:17 -0500 Subject: [PATCH] Tidy init() branches (no-op) --- cmd/mydyndns/cli/cli.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/mydyndns/cli/cli.go b/cmd/mydyndns/cli/cli.go index f3c78ad..10bd2a7 100644 --- a/cmd/mydyndns/cli/cli.go +++ b/cmd/mydyndns/cli/cli.go @@ -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