bugfix readKeypair

This commit is contained in:
AJ ONeal 2019-03-05 07:35:22 -07:00
parent 4ac6e7f8dd
commit 4ab4cbd2ab
1 changed files with 5 additions and 3 deletions

View File

@ -338,7 +338,9 @@ if ('sign' === opts.action) {
}));
});
} else {
return convertKeypair();
return kp.then(function (pair) {
return convertKeypair(pair);
});
}
function readKeypair() {
@ -368,8 +370,8 @@ function readKeypair() {
return pair;
}
function convertKeypair() {
var pair = readKeypair();
function convertKeypair(pair) {
//var pair = readKeypair();
var ps = [];
if (pair.private && !opts.public) {