We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 359deef commit d397727Copy full SHA for d397727
1 file changed
index.js
@@ -147,12 +147,12 @@ module.exports = class BinWrapper {
147
* @api private
148
*/
149
findExisting() {
150
- return statAsync(this.path()).catch(err => {
151
- if (err && err.code === 'ENOENT') {
+ return statAsync(this.path()).catch(error => {
+ if (error && error.code === 'ENOENT') {
152
return this.download();
153
}
154
155
- return Promise.reject(err);
+ return Promise.reject(error);
156
});
157
158
0 commit comments