remove weird formatting
This commit is contained in:
parent
eb1b133188
commit
e6d2693f33
|
@ -157,11 +157,7 @@ export default class Reference extends ReferenceBase {
|
||||||
* @param onComplete
|
* @param onComplete
|
||||||
* @param applyLocally
|
* @param applyLocally
|
||||||
*/
|
*/
|
||||||
transaction(
|
transaction(transactionUpdate: Function, onComplete, applyLocally: boolean = false) {
|
||||||
transactionUpdate: Function,
|
|
||||||
onComplete?: (?Error, any, ?Snapshot) => any,
|
|
||||||
applyLocally: boolean = false
|
|
||||||
) {
|
|
||||||
if (!isFunction(transactionUpdate)) return Promise.reject(new Error('Missing transactionUpdate function argument.'));
|
if (!isFunction(transactionUpdate)) return Promise.reject(new Error('Missing transactionUpdate function argument.'));
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
Loading…
Reference in New Issue