From b0c54e2ed41b98defb5e7a301991e550b1e5bcbe Mon Sep 17 00:00:00 2001 From: Marcel Ludwig Date: Tue, 6 Apr 2021 10:22:23 +0200 Subject: [PATCH] Fix shadowed vars --- handler/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/file.go b/handler/file.go index 4c271891b..a6db9d53b 100644 --- a/handler/file.go +++ b/handler/file.go @@ -121,7 +121,7 @@ func (f *File) HasResponse(req *http.Request) bool { if info.IsDir() { reqPath = path.Join(reqPath, "/", dirIndexFile) - file, info, err := f.openDocRootFile(reqPath) + file, info, err = f.openDocRootFile(reqPath) if err != nil { return false }