mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-03-25 02:32:52 -05:00
Fix issue on handle error, missing context
This commit is contained in:
parent
f4058bb5c2
commit
57692cd8b1
1 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue