oops, shadowed an err
parent
6966dbf311
commit
dcb6a7dc5d
|
@ -182,9 +182,10 @@ func rawDirHandler(w http.ResponseWriter, r *http.Request, d *data, file *files.
|
||||||
name = file.Name
|
name = file.Name
|
||||||
} else {
|
} else {
|
||||||
// This should indicate that the fs root is the directory being downloaded, lookup its name
|
// This should indicate that the fs root is the directory being downloaded, lookup its name
|
||||||
actual, err := file.Fs.Stat(".")
|
|
||||||
if err != nil {
|
actual, statErr := file.Fs.Stat(".")
|
||||||
return http.StatusInternalServerError, err
|
if statErr != nil {
|
||||||
|
return http.StatusInternalServerError, statErr
|
||||||
}
|
}
|
||||||
name = actual.Name()
|
name = actual.Name()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue