diff options
author | Emile <hanemile@protonmail.com> | 2020-03-22 15:52:00 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-03-22 15:52:00 +0100 |
commit | 613aa7dae92704acf422cc75d333eb8a59cca4e3 (patch) | |
tree | ef9f9d047d23f190f97dd7407c5998a743108246 | |
parent | 8ca16661d8ff48fee7cd12a37bf3bead61ffee7b (diff) |
comment
-rw-r--r-- | src/http/http.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 } |