Skip to content

Commit

Permalink
fix: promisify password storage fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Aug 28, 2017
1 parent 22d51af commit fe7cc6f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/password-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ module.exports = function (service) {
var keytar = require('keytar')
} catch (e) {
return {
get: () => {},
set: () => debug('"keytar" is not installed correctly, not saving password')
get: () => Promise.resolve({}),
set: () => {
debug('"keytar" is not installed correctly, not saving password')
return Promise.resolve()
}
}
}

Expand Down

0 comments on commit fe7cc6f

Please sign in to comment.