Skip to content

Commit a5b46b7

Browse files
committed
lint fixes, console log removal.
1 parent bad6f72 commit a5b46b7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/firestore/src/api/snapshot.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,11 @@ export class DocumentSnapshot<
505505

506506
toJSON(): object {
507507
const document = this._document;
508-
const result : any = { };
508+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
509+
const result: any = {};
509510
result['bundle'] = '';
510511
result['source'] = 'DocumentSnapshot';
511-
512+
512513
if (
513514
!document ||
514515
!document.isValidDocument() ||
@@ -698,7 +699,8 @@ export class QuerySnapshot<
698699
}
699700

700701
toJSON(): object {
701-
const result : any = { };
702+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
703+
const result: any = {};
702704
result['source'] = 'QuerySnapshot';
703705
const builder: BundleBuilder = new BundleBuilder(
704706
this._firestore,

packages/firestore/test/integration/api/query.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ apiDescribe('Queries', persistence => {
101101
expect(jsonBundle).to.not.be.null;
102102
// eslint-disable-next-line @typescript-eslint/no-explicit-any
103103
const json = (jsonBundle as any).bundle;
104-
console.log("DEDB checking if json exists");
105104
expect(json).to.exist;
106105
expect(json.length).to.be.greaterThan(0);
107106

@@ -110,7 +109,6 @@ apiDescribe('Queries', persistence => {
110109
const docRef = doc(db, path!);
111110
await loadBundle(db, json);
112111
const docSnap = await getDocFromCache(docRef);
113-
console.log("DEDB checking if docSnap exists");
114112
expect(docSnap.exists);
115113
expect(docSnap.data()).to.deep.equal(testDocs.a);
116114
});

0 commit comments

Comments
 (0)