From 89ca374183fcf7757a44a5a3ed5de2589a7bc218 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 22 Mar 2020 16:29:00 +0100 Subject: using default zero value --- src/http/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/http/http.go') 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 -- cgit 1.4.1