Changed variable name from PascalCase to camelCase

This commit is contained in:
Seednode 2022-11-10 15:34:07 -06:00
parent 5f28361f47
commit eff8394453
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
var Version = "0.25.4" var Version = "0.25.5"
func init() { func init() {
rootCmd.AddCommand(versionCmd) rootCmd.AddCommand(versionCmd)

View File

@ -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 { 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 { if err != nil {
return err return err
} }
filePath, err := filepath.EvalSymlinks(strings.TrimPrefix(PrefixedFilePath, Prefix)) filePath, err := filepath.EvalSymlinks(strings.TrimPrefix(prefixedFilePath, Prefix))
if err != nil { if err != nil {
return err return err
} }