Skip to content

Commit

Permalink
🐛 Fix double const var declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoLegends committed Jul 28, 2017
1 parent 65775ee commit 679d7b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/macos.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ module.exports = function() {
as.execute(START_SPOTIFY, null, (err, result) => err ? rej(err) : res());
})
.catch(err => {
const err = err.indexOf('-43') !== -1 ?
const e = err.indexOf('-43') !== -1 ?
new Error("Application is not installed!", 'not_found') :
new Error(err);
return Promise.reject(err);
return Promise.reject(e);
});
};

0 comments on commit 679d7b0

Please sign in to comment.