From 8c763db461e44c8d3afc0caac466dacb9454d3ac Mon Sep 17 00:00:00 2001 From: Seednode Date: Fri, 28 Oct 2022 17:26:26 -0500 Subject: [PATCH] Removed two debug print statements I accidentally left in --- cmd/version.go | 2 +- cmd/web.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/version.go b/cmd/version.go index 805e184..90687e8 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -10,7 +10,7 @@ import ( "github.com/spf13/cobra" ) -var Version = "0.19.0" +var Version = "0.19.1" func init() { rootCmd.AddCommand(versionCmd) diff --git a/cmd/web.go b/cmd/web.go index 75a45dd..b286b4f 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -252,8 +252,6 @@ func serveHtmlHandler(paths []string, re regexp.Regexp, fileCache *[]string) app if Filter { filters.Includes = splitQueryParams(r.URL.Query().Get("include")) filters.Excludes = splitQueryParams(r.URL.Query().Get("exclude")) - } else { - fmt.Println("Filters disabled") } sortOrder := "" @@ -401,7 +399,6 @@ func serveHtmlHandler(paths []string, re regexp.Regexp, fileCache *[]string) app preparePath(filePath), generateQueryParams(&filters, sortOrder), ) - fmt.Printf("New URL is %v\n", newUrl) http.Redirect(w, r, newUrl, RedirectStatusCode) case r.URL.Path == "/": filePath, err := pickFile(paths, &filters, sortOrder, fileCache)