From 10951e45405cc15c7046558ecdef91920484a81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zlatko=20=C4=8Calu=C5=A1i=C4=87?= Date: Wed, 25 Oct 2017 18:19:14 +0200 Subject: [PATCH] Unshadow err in one place --- handlers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index b5deb8f..cb73852 100644 --- a/handlers.go +++ b/handlers.go @@ -246,7 +246,8 @@ func ListBlobs(w http.ResponseWriter, r *http.Request) { for _, i := range items { if isHashed(fileType) { subpath := filepath.Join(path, i.Name()) - subitems, err := ioutil.ReadDir(subpath) + var subitems []os.FileInfo + subitems, err = ioutil.ReadDir(subpath) if err != nil { if Config.Debug { log.Print(err)