From 4826f7c0a095da8658bfae6a1d7e982cd81ffd3b Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Fri, 11 Nov 2016 17:06:07 -0800 Subject: [PATCH] Revert to previous anonymous function for promise. --- app/scripts/keyring-controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js index bb1727d7a..c9f7e503e 100644 --- a/app/scripts/keyring-controller.js +++ b/app/scripts/keyring-controller.js @@ -142,7 +142,9 @@ module.exports = class KeyringController extends EventEmitter { .then(() => { return this.persistAllKeyrings() }) - .then(cb) + .then(() => { + cb() + }) .catch((err) => { cb(err) })