Skip to content

Commit afa4465

Browse files
committed
chore: lint fixes
1 parent ffaeb63 commit afa4465

3 files changed

Lines changed: 27 additions & 29 deletions

File tree

packages/firestore/ios/RNFBFirestore/RNFBFirestoreCollectionModule.m

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,11 @@ - (void)handleQueryOnSnapshot:(FIRApp *)firebaseApp
366366
}
367367
};
368368

369-
FIRSnapshotListenOptions *snapshotListenOptions =
370-
[[[[FIRSnapshotListenOptions alloc] init]
371-
optionsWithIncludeMetadataChanges:includeMetadataChanges] optionsWithSource:source];
372-
id<FIRListenerRegistration> listener = [[firestoreQuery instance]
373-
addSnapshotListenerWithOptions:snapshotListenOptions
374-
listener:listenerBlock];
369+
FIRSnapshotListenOptions *snapshotListenOptions = [[[[FIRSnapshotListenOptions alloc] init]
370+
optionsWithIncludeMetadataChanges:includeMetadataChanges] optionsWithSource:source];
371+
id<FIRListenerRegistration> listener =
372+
[[firestoreQuery instance] addSnapshotListenerWithOptions:snapshotListenOptions
373+
listener:listenerBlock];
375374
collectionSnapshotListeners[listenerId] = listener;
376375
}
377376

packages/firestore/ios/RNFBFirestore/RNFBFirestoreDocumentModule.m

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,11 @@ - (void)invalidate {
105105
source = FIRListenSourceCache;
106106
}
107107

108-
FIRSnapshotListenOptions *snapshotListenOptions =
109-
[[[[FIRSnapshotListenOptions alloc] init]
110-
optionsWithIncludeMetadataChanges:includeMetadataChanges] optionsWithSource:source];
111-
id<FIRListenerRegistration> listener = [documentReference
112-
addSnapshotListenerWithOptions:snapshotListenOptions
113-
listener:listenerBlock];
108+
FIRSnapshotListenOptions *snapshotListenOptions = [[[[FIRSnapshotListenOptions alloc] init]
109+
optionsWithIncludeMetadataChanges:includeMetadataChanges] optionsWithSource:source];
110+
id<FIRListenerRegistration> listener =
111+
[documentReference addSnapshotListenerWithOptions:snapshotListenOptions
112+
listener:listenerBlock];
114113
documentSnapshotListeners[listenerId] = listener;
115114
}
116115

packages/firestore/lib/types/firestore.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ export declare class LoadBundleTask implements PromiseLike<LoadBundleTaskProgres
171171

172172
export type SetOptions =
173173
| {
174-
readonly merge?: boolean;
175-
}
174+
readonly merge?: boolean;
175+
}
176176
| {
177-
readonly mergeFields?: Array<string | FieldPath>;
178-
};
177+
readonly mergeFields?: Array<string | FieldPath>;
178+
};
179179

180180
export type WhereFilterOp =
181181
| '<'
@@ -271,10 +271,10 @@ export interface DocumentData {
271271
export type PartialWithFieldValue<T> =
272272
| Partial<T>
273273
| (T extends Primitive
274-
? T
275-
: T extends {}
276-
? { [K in keyof T]?: PartialWithFieldValue<T[K]> | FieldValue }
277-
: never);
274+
? T
275+
: T extends {}
276+
? { [K in keyof T]?: PartialWithFieldValue<T[K]> | FieldValue }
277+
: never);
278278

279279
/**
280280
* Given a union type `U = T1 | T2 | ...`, returns an intersected type
@@ -311,18 +311,18 @@ export type NestedUpdateFields<T extends {}> = UnionToIntersection<
311311
export type UpdateData<T> = T extends Primitive
312312
? T
313313
: T extends {}
314-
? {
315-
[K in keyof T]?: UpdateData<T[K]> | FieldValue;
316-
} & NestedUpdateFields<T>
317-
: Partial<T>;
314+
? {
315+
[K in keyof T]?: UpdateData<T[K]> | FieldValue;
316+
} & NestedUpdateFields<T>
317+
: Partial<T>;
318318

319319
export type WithFieldValue<T> =
320320
| T
321321
| (T extends Primitive
322-
? T
323-
: T extends {}
324-
? { [K in keyof T]: WithFieldValue<T[K]> | FieldValue }
325-
: never);
322+
? T
323+
: T extends {}
324+
? { [K in keyof T]: WithFieldValue<T[K]> | FieldValue }
325+
: never);
326326

327327
export interface FirestoreDataConverter<
328328
AppModelType,
@@ -414,7 +414,7 @@ export declare class WriteBatch {
414414
commit(): Promise<void>;
415415
}
416416

417-
export declare class LiteTransaction { }
417+
export declare class LiteTransaction {}
418418

419419
export declare class Transaction extends LiteTransaction {
420420
get<AppModelType, DbModelType extends DocumentData>(

0 commit comments

Comments
 (0)