remove invalid return from thenable
This commit is contained in:
parent
d23c048304
commit
ef16ed1d4b
|
@ -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.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue