Removed two debug print statements I accidentally left in

This commit is contained in:
Seednode 2022-10-28 17:26:26 -05:00
parent f21c01e085
commit 8c763db461
2 changed files with 1 additions and 4 deletions

View File

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

View File

@ -252,8 +252,6 @@ func serveHtmlHandler(paths []string, re regexp.Regexp, fileCache *[]string) app
if Filter { if Filter {
filters.Includes = splitQueryParams(r.URL.Query().Get("include")) filters.Includes = splitQueryParams(r.URL.Query().Get("include"))
filters.Excludes = splitQueryParams(r.URL.Query().Get("exclude")) filters.Excludes = splitQueryParams(r.URL.Query().Get("exclude"))
} else {
fmt.Println("Filters disabled")
} }
sortOrder := "" sortOrder := ""
@ -401,7 +399,6 @@ func serveHtmlHandler(paths []string, re regexp.Regexp, fileCache *[]string) app
preparePath(filePath), preparePath(filePath),
generateQueryParams(&filters, sortOrder), generateQueryParams(&filters, sortOrder),
) )
fmt.Printf("New URL is %v\n", newUrl)
http.Redirect(w, r, newUrl, RedirectStatusCode) http.Redirect(w, r, newUrl, RedirectStatusCode)
case r.URL.Path == "/": case r.URL.Path == "/":
filePath, err := pickFile(paths, &filters, sortOrder, fileCache) filePath, err := pickFile(paths, &filters, sortOrder, fileCache)