From fe7cc6f7e2bc76e57131692a1d9cb4b03a9edeba Mon Sep 17 00:00:00 2001 From: Gregor Date: Sun, 27 Aug 2017 18:25:18 -0700 Subject: [PATCH] fix: promisify password storage fallback --- lib/password-storage.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/password-storage.js b/lib/password-storage.js index a984b44..e1ec5c2 100644 --- a/lib/password-storage.js +++ b/lib/password-storage.js @@ -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() + } } }