Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 4b6bae9

Browse files
lint
1 parent 35fdb86 commit 4b6bae9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/firebase.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ export namespace firestore {
835835
}
836836

837837
export class FieldValue {
838-
static serverTimestamp: () => "SERVER_TIMESTAMP"
838+
static serverTimestamp: () => "SERVER_TIMESTAMP";
839839
}
840840

841841
export interface QuerySnapshot {

src/firebase.ios.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,12 @@ firebase._processPendingNotifications = () => {
412412
userInfoJSON.body = userInfoJSON.aps.alert.body;
413413
}
414414
// also, to make the ts.d happy copy all properties to a data element
415-
if (!userInfoJSON.hasOwnProperty('data')) { userInfoJSON.data = {}; }
416-
Object.keys(userInfoJSON).forEach((key) => { if (key!=='data') userInfoJSON.data[key] = userInfoJSON[key]; })
415+
if (!userInfoJSON.hasOwnProperty('data')) {
416+
userInfoJSON.data = {};
417+
}
418+
Object.keys(userInfoJSON).forEach((key) => {
419+
if (key !== 'data') userInfoJSON.data[key] = userInfoJSON[key];
420+
});
417421

418422
// cleanup
419423
userInfoJSON.aps = undefined;
@@ -2463,7 +2467,7 @@ firebase.firestore.update = (collectionPath: string, documentPath: string, docum
24632467
.collectionWithPath(collectionPath)
24642468
.documentWithPath(documentPath);
24652469

2466-
docRef.updateDataCompletion(document, (error: NSError) => {
2470+
docRef.updateDataCompletion(document, (error: NSError) => {
24672471
if (error) {
24682472
reject(error.localizedDescription);
24692473
} else {

0 commit comments

Comments
 (0)