From 613aa7dae92704acf422cc75d333eb8a59cca4e3 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 22 Mar 2020 15:52:00 +0100 Subject: comment --- src/http/http.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/http/http.go b/src/http/http.go index f487cfd..b4c3045 100644 --- a/src/http/http.go +++ b/src/http/http.go @@ -178,6 +178,9 @@ func pathHandler(w http.ResponseWriter, r *http.Request) { var dirCount int = 0 var fileCount int = 0 for _, f := range files { + + // if the current file is not valid, continue to the next file skipping + // the rest of this loop iteration if filterIsValid(f.Name()) == false { continue } -- cgit 1.4.1