From 26475ed491aa938589ec62c8c36595f4f6e7fe9d Mon Sep 17 00:00:00 2001 From: Seednode Date: Sat, 9 Sep 2023 21:00:58 -0500 Subject: [PATCH] Moved warning for --russian earlier in init process --- cmd/root.go | 2 +- cmd/web.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 63790b4..d9267b3 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -17,7 +17,7 @@ var ( ) const ( - Version string = "0.59.0" + Version string = "0.59.1" ) var ( diff --git a/cmd/web.go b/cmd/web.go index 43c2bd7..1d93e58 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -1098,6 +1098,10 @@ func ServePage(args []string) error { return errors.New("no supported files found in provided paths") } + if russian { + fmt.Printf("WARNING! Files *will* be deleted after serving!\n\n") + } + rand.New(rand.NewSource(time.Now().UnixNano())) mux := httprouter.New() @@ -1179,10 +1183,6 @@ func ServePage(args []string) error { mux.HandlerFunc("GET", "/debug/pprof/trace", pprof.Trace) } - if russian { - fmt.Printf("WARNING! Files *will* be deleted after serving!\n\n") - } - if statistics { if statisticsFile != "" { stats.Import(statisticsFile)