From e8f6f0917bc865c4a825f20a0352cb13fbadfc93 Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Sun, 26 Nov 2023 15:05:11 +0100 Subject: stop using named return values for proxy.Version() --- proxy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'proxy.go') diff --git a/proxy.go b/proxy.go index 6628aec..e04c121 100644 --- a/proxy.go +++ b/proxy.go @@ -43,10 +43,10 @@ func Path(path ...string) string { } // Version returns the version string of the running instance. -func Version() (version string, ok bool) { +func Version() (string, bool) { info, ok := debug.ReadBuildInfo() if !ok { - return + return "", false } for _, dep := range info.Deps { @@ -55,5 +55,5 @@ func Version() (version string, ok bool) { } } - return + return "", false } -- cgit v1.2.3