aboutsummaryrefslogtreecommitdiff
path: root/cmd/mobius-hotline-server
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-17 19:51:37 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-17 19:51:37 -0700
commitf8e4cd540b87de3e308ec18a2b040b284a741522 (patch)
tree6d8b1ad0bd04cc19ecaf276e271caaef4d0866f4 /cmd/mobius-hotline-server
parent45ca5d60383cbe270624c713b916da29af7ba88f (diff)
Clean up various linter warnings
Diffstat (limited to 'cmd/mobius-hotline-server')
-rw-r--r--cmd/mobius-hotline-server/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/mobius-hotline-server/main.go b/cmd/mobius-hotline-server/main.go
index 66566cd..c34dc71 100644
--- a/cmd/mobius-hotline-server/main.go
+++ b/cmd/mobius-hotline-server/main.go
@@ -99,7 +99,7 @@ func main() {
}
if _, err := os.Stat(*configDir); os.IsNotExist(err) {
- slogger.Error(fmt.Sprintf("Configuration directory not found. Correct the path or re-run with -init to generate initial config."))
+ slogger.Error("Configuration directory not found. Correct the path or re-run with -init to generate initial config.")
os.Exit(1)
}
@@ -145,7 +145,9 @@ func (sh *statHandler) RenderStats(w http.ResponseWriter, _ *http.Request) {
_, _ = io.WriteString(w, string(u))
}
-func defaultConfigPath() (cfgPath string) {
+func defaultConfigPath() string {
+ var cfgPath string
+
switch runtime.GOOS {
case "windows":
cfgPath = "config/"