From dcb6a7dc5d1f7c1c3d89a953c1755d475cbbe1ce Mon Sep 17 00:00:00 2001 From: Ryan Miller <43447928+Rmiller5466@users.noreply.github.com> Date: Thu, 3 Jul 2025 13:03:13 -0400 Subject: [PATCH] oops, shadowed an err --- http/raw.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/http/raw.go b/http/raw.go index 5159d58f..cd05a1bc 100644 --- a/http/raw.go +++ b/http/raw.go @@ -182,9 +182,10 @@ func rawDirHandler(w http.ResponseWriter, r *http.Request, d *data, file *files. name = file.Name } else { // This should indicate that the fs root is the directory being downloaded, lookup its name - actual, err := file.Fs.Stat(".") - if err != nil { - return http.StatusInternalServerError, err + + actual, statErr := file.Fs.Stat(".") + if statErr != nil { + return http.StatusInternalServerError, statErr } name = actual.Name() }