mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-22 11:16:18 +08:00
remove invalid return from thenable
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user