remove invalid return from thenable

This commit is contained in:
Salakar 2017-09-20 11:53:50 +01:00
parent d23c048304
commit ef16ed1d4b
1 changed files with 4 additions and 4 deletions

View File

@ -488,16 +488,16 @@ export default class Reference extends ReferenceBase {
return fnResolve(result);
}, (possibleErr) => {
this._promise = null;
if (isFunction(fnReject)) {
return fnReject(possibleErr);
}
throw possibleErr;
});
}
return throw new Error("Cannot read property 'then' of undefined.");
throw new Error("Cannot read property 'then' of undefined.");
}
/**
@ -512,7 +512,7 @@ export default class Reference extends ReferenceBase {
});
}
return throw new Error("Cannot read property 'catch' of undefined.");
throw new Error("Cannot read property 'catch' of undefined.");
}
/**