mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00
Unshadow err in one place
This commit is contained in:
parent
0f9ea68a2e
commit
10951e4540
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue