mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 09:36:13 -08:00
Unshadow err in one place
This commit is contained in:
@@ -246,7 +246,8 @@ func ListBlobs(w http.ResponseWriter, r *http.Request) {
|
|||||||
for _, i := range items {
|
for _, i := range items {
|
||||||
if isHashed(fileType) {
|
if isHashed(fileType) {
|
||||||
subpath := filepath.Join(path, i.Name())
|
subpath := filepath.Join(path, i.Name())
|
||||||
subitems, err := ioutil.ReadDir(subpath)
|
var subitems []os.FileInfo
|
||||||
|
subitems, err = ioutil.ReadDir(subpath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if Config.Debug {
|
if Config.Debug {
|
||||||
log.Print(err)
|
log.Print(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user