From eff8394453bf5d451561fc5a3da7e05b085fe98b Mon Sep 17 00:00:00 2001 From: Seednode Date: Thu, 10 Nov 2022 15:34:07 -0600 Subject: [PATCH] Changed variable name from PascalCase to camelCase --- cmd/version.go | 2 +- cmd/web.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/version.go b/cmd/version.go index b372107..3cfbd3c 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -10,7 +10,7 @@ import ( "github.com/spf13/cobra" ) -var Version = "0.25.4" +var Version = "0.25.5" func init() { rootCmd.AddCommand(versionCmd) diff --git a/cmd/web.go b/cmd/web.go index 6d31ea4..7360986 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -255,12 +255,12 @@ func serveHtml(w http.ResponseWriter, r *http.Request, filePath string, dimensio } func serveStaticFile(w http.ResponseWriter, r *http.Request, paths []string) error { - PrefixedFilePath, err := stripQueryParams(r.URL.Path) + prefixedFilePath, err := stripQueryParams(r.URL.Path) if err != nil { return err } - filePath, err := filepath.EvalSymlinks(strings.TrimPrefix(PrefixedFilePath, Prefix)) + filePath, err := filepath.EvalSymlinks(strings.TrimPrefix(prefixedFilePath, Prefix)) if err != nil { return err }