allow for synchronous return

This commit is contained in:
AJ ONeal 2018-11-05 01:36:56 -07:00
parent 73f2051188
commit 08a38a71f1
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ Greenlock.create = function (gl) {
}
try {
if (1 === gl.approveDomains.length) {
return gl.approveDomains(opts).then(onApproved, onRejected);
return PromiseA.resolve(gl.approveDomains(opts)).then(onApproved, onRejected);
} else if (2 === gl.approveDomains.length) {
gl.approveDomains(opts, onMaybe);
} else {