Skip to content

Commit 63fc9d2

Browse files
Comments
1 parent 9b63c17 commit 63fc9d2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/firestore/exp/src/api/components.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const LOG_TAG = 'ComponentProvider';
3737
// client. Dependencies can be lazily constructed and only one exists per
3838
// Firestore instance.
3939

40-
// Instance maps that ensures only one offline component provider exists per
40+
// Instance maps that ensure that only one component provider exists per
4141
// Firestore instance.
4242
const offlineComponentProviders = new Map<
4343
Firestore,
@@ -55,8 +55,8 @@ export async function setOfflineComponentProvider(
5555
): Promise<void> {
5656
debugAssert(
5757
!onlineComponentProviders.has(firestore),
58-
'The offline component ' +
59-
'provider must be registered before the online component provider.'
58+
'The offline component provider must be registered before the online ' +
59+
'component provider.'
6060
);
6161
const configuration = await firestore._getConfiguration();
6262
configuration.persistenceSettings = persistenceSettings;

packages/firestore/exp/src/api/database.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ export function enableIndexedDbPersistence(
175175
verifyNotInitialized(firestoreImpl);
176176

177177
// `_getSettings()` freezes the client settings and prevents further changes
178-
// to the components (as `verifyNotInitialized()` would not fail). Components
179-
// can the be accessed via `getOfflineComponentProvider()` and
178+
// to the components (as `verifyNotInitialized()` would fail). Components can
179+
// then be accessed via `getOfflineComponentProvider()` and
180180
// `getOnlineComponentProvider()`
181181
const settings = firestoreImpl._getSettings();
182182

@@ -202,8 +202,8 @@ export function enableMultiTabIndexedDbPersistence(
202202
const settings = firestoreImpl._getSettings();
203203

204204
// `_getSettings()` freezes the client settings and prevents further changes
205-
// to the components (as `verifyNotInitialized()` would not fail). Components
206-
// can the be accessed via `getOfflineComponentProvider()` and
205+
// to the components (as `verifyNotInitialized()` would fail). Components can
206+
// then be accessed via `getOfflineComponentProvider()` and
207207
// `getOnlineComponentProvider()`
208208
const onlineComponentProvider = new OnlineComponentProvider();
209209
const offlineComponentProvider = new MultiTabOfflineComponentProvider(

0 commit comments

Comments
 (0)