about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-22 16:29:00 +0100
committerEmile <hanemile@protonmail.com>2020-03-22 16:29:00 +0100
commit89ca374183fcf7757a44a5a3ed5de2589a7bc218 (patch)
treea4a6bd585b47f0a942cb7e18adbbeefe826f040b
parentb07002fbfa13a20251cf2ee1ca31d59eede19c7c (diff)
using default zero value
-rw-r--r--src/http/http.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/http.go b/src/http/http.go
index cf309b8..db7ff91 100644
--- a/src/http/http.go
+++ b/src/http/http.go
@@ -177,8 +177,8 @@ func pathHandler(w http.ResponseWriter, r *http.Request) {
 
 	// define the items (files and dirs)
 	var items structs.Items
-	var dirCount int = 0
-	var fileCount int = 0
+	var dirCount int
+	var fileCount int
 	for _, f := range files {
 
 		// if the current file is not valid, continue to the next file skipping