aboutsummaryrefslogtreecommitdiff
path: root/proxy.go
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-11-26 15:05:11 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-11-26 15:05:42 +0100
commite8f6f0917bc865c4a825f20a0352cb13fbadfc93 (patch)
treed1bb1c5b16527280fab4abb16828f6a753a6156d /proxy.go
parent99e7034d912d566a3601005ea5770774edfa43fa (diff)
stop using named return values for proxy.Version()
Diffstat (limited to 'proxy.go')
-rw-r--r--proxy.go6
1 files changed, 3 insertions, 3 deletions
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
}