Skip to content

Commit

Permalink
Undo accidental change in login
Browse files Browse the repository at this point in the history
  • Loading branch information
janedegtiareva committed Apr 21, 2020
1 parent 1025c64 commit fc93a27
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.js
Expand Up @@ -111,8 +111,6 @@ exports.login = async function(options) {
});
});
};
rl.close();
capture.cancel();

let accountId;
if (!tempUrl) {
Expand All @@ -128,14 +126,15 @@ exports.login = async function(options) {
.catch(reject);
});
}

rl.close();
capture.cancel();
// verify the accountId if we captured it or ...
try {
await verify(accountId, keyPair, options);
} catch (error) {
console.error('Failed to verify accountId.', error.message);
}
}
}
};

exports.viewAccount = async function(options) {
Expand Down

0 comments on commit fc93a27

Please sign in to comment.