about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-22 15:52:00 +0100
committerEmile <hanemile@protonmail.com>2020-03-22 15:52:00 +0100
commit613aa7dae92704acf422cc75d333eb8a59cca4e3 (patch)
treeef9f9d047d23f190f97dd7407c5998a743108246 /src
parent8ca16661d8ff48fee7cd12a37bf3bead61ffee7b (diff)
comment
Diffstat (limited to 'src')
-rw-r--r--src/http/http.go3
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
 		}