oops, shadowed an err

pull/5259/head
Ryan Miller 2025-07-03 13:03:13 -04:00
parent 6966dbf311
commit dcb6a7dc5d
1 changed files with 4 additions and 3 deletions

View File

@ -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()
}