1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-21 07:29:37 +01:00

Fix issue on handle error, missing context

This commit is contained in:
Juan Picado 2017-05-09 09:48:02 +02:00
parent f4058bb5c2
commit 57692cd8b1
No known key found for this signature in database
GPG Key ID: 18AC54485952D158

@ -372,10 +372,14 @@ class Storage {
} else {
cb(Error[404]('no such file available'));
}
}, function(err) {
if (err) return callback(err);
}, (err) => {
if (err) {
return callback(err);
}
let storage = this.storage(name);
if (storage) storage.unlink(filename, callback);
if (storage) {
storage.unlink(filename, callback);
}
});
}