mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-14 12:11:55 +08:00
remove weird formatting
This commit is contained in:
@@ -157,11 +157,7 @@ export default class Reference extends ReferenceBase {
|
||||
* @param onComplete
|
||||
* @param applyLocally
|
||||
*/
|
||||
transaction(
|
||||
transactionUpdate: Function,
|
||||
onComplete?: (?Error, any, ?Snapshot) => any,
|
||||
applyLocally: boolean = false
|
||||
) {
|
||||
transaction(transactionUpdate: Function, onComplete, applyLocally: boolean = false) {
|
||||
if (!isFunction(transactionUpdate)) return Promise.reject(new Error('Missing transactionUpdate function argument.'));
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user