Skip to content

Commit e4cfef2

Browse files
authored
Merge pull request #68 from realityking/fix/linting
Fix a linting error
2 parents 359deef + d397727 commit e4cfef2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ module.exports = class BinWrapper {
147147
* @api private
148148
*/
149149
findExisting() {
150-
return statAsync(this.path()).catch(err => {
151-
if (err && err.code === 'ENOENT') {
150+
return statAsync(this.path()).catch(error => {
151+
if (error && error.code === 'ENOENT') {
152152
return this.download();
153153
}
154154

155-
return Promise.reject(err);
155+
return Promise.reject(error);
156156
});
157157
}
158158

0 commit comments

Comments
 (0)