Skip to content

Commit 013d821

Browse files
committed
yarn lint:fix
1 parent 5f5bbb6 commit 013d821

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

packages/firestore/src/core/firestore_client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ export async function setOfflineComponentProvider(
237237
// When a user calls clearPersistence() in one client, all other clients
238238
// need to be terminated to allow the delete to succeed.
239239
offlineComponentProvider.persistence.setDatabaseDeletedListener(reason => {
240+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
240241
client.terminate();
241242
if (reason === 'site data cleared') {
242243
return new DatabaseDeletedListenerAbortResult(

packages/firestore/src/local/simple_db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import { Code, FirestoreError } from '../util/error';
2222
import { logDebug, logError, logWarn } from '../util/log';
2323
import { Deferred } from '../util/promise';
2424

25-
import { PersistencePromise } from './persistence_promise';
2625
import { type DatabaseDeletedListener } from './persistence';
26+
import { PersistencePromise } from './persistence_promise';
2727

2828
// References to `indexedDB` are guarded by SimpleDb.isAvailable() and getGlobal()
2929
/* eslint-disable no-restricted-globals */

packages/firestore/test/unit/specs/spec_test_runner.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ import {
7777
SCHEMA_VERSION
7878
} from '../../../src/local/indexeddb_schema';
7979
import { SchemaConverter } from '../../../src/local/indexeddb_schema_converter';
80-
import { DatabaseDeletedListenerContinueResult } from '../../../src/local/persistence';
8180
import {
8281
DbPrimaryClientKey,
8382
DbPrimaryClientStore
@@ -86,6 +85,7 @@ import { LocalStore } from '../../../src/local/local_store';
8685
import { localStoreConfigureFieldIndexes } from '../../../src/local/local_store_impl';
8786
import { LruGarbageCollector } from '../../../src/local/lru_garbage_collector';
8887
import { MemoryLruDelegate } from '../../../src/local/memory_persistence';
88+
import { DatabaseDeletedListenerContinueResult } from '../../../src/local/persistence';
8989
import {
9090
ClientId,
9191
SharedClientState
@@ -367,6 +367,7 @@ abstract class TestRunner {
367367
triggerRemoteStoreUnlisten.bind(null, this.syncEngine);
368368

369369
this.persistence.setDatabaseDeletedListener(() => {
370+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
370371
this.shutdown();
371372
return new DatabaseDeletedListenerContinueResult();
372373
});

0 commit comments

Comments
 (0)