From 9be1cd6277bdcce85c15cdcd692283fba2302b9e Mon Sep 17 00:00:00 2001 From: Kai Xia Date: Wed, 25 Feb 2026 21:32:57 +1100 Subject: [PATCH] a moved case of nakedret Signed-off-by: Kai Xia --- cmd/picoclaw/internal/helpers.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cmd/picoclaw/internal/helpers.go b/cmd/picoclaw/internal/helpers.go index a084dc1be..1f52df5dd 100644 --- a/cmd/picoclaw/internal/helpers.go +++ b/cmd/picoclaw/internal/helpers.go @@ -37,15 +37,13 @@ func FormatVersion() string { } // FormatBuildInfo returns build time and go version info -func FormatBuildInfo() (build string, goVer string) { - if buildTime != "" { - build = buildTime - } - goVer = goVersion +func FormatBuildInfo() (string, string) { + build := buildTime + goVer := goVersion if goVer == "" { goVer = runtime.Version() } - return + return build, goVer } // GetVersion returns the version string