Skip to content

Run prettier #3036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions packages/firestore/index.console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@

import './src/platform_browser/browser_init';

export {
Firestore,
FirestoreDatabase,
} from './src/api/database';
export { Firestore, FirestoreDatabase } from './src/api/database';
export {
PublicCollectionReference as CollectionReference,
PublicDocumentReference as DocumentReference,
Expand Down
6 changes: 5 additions & 1 deletion packages/firestore/src/local/lru_garbage_collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,11 @@ export class LruScheduler implements GarbageCollectionScheduler {
await localStore.collectGarbage(this.garbageCollector);
} catch (e) {
if (e.name === 'IndexedDbTransactionError') {
logDebug(LOG_TAG, 'Ignoring IndexedDB error during garbage collection: ', e);
logDebug(
LOG_TAG,
'Ignoring IndexedDB error during garbage collection: ',
e
);
} else {
await ignoreIfPrimaryLeaseLoss(e);
}
Expand Down
1 change: 0 additions & 1 deletion packages/firestore/src/model/object_value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const enum TypeOrder {
* ability to add and remove fields (via the ObjectValueBuilder).
*/
export class ObjectValue {

constructor(public readonly proto: { mapValue: api.MapValue }) {
debugAssert(
!isServerTimestamp(proto),
Expand Down
4 changes: 2 additions & 2 deletions packages/firestore/src/remote/remote_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,11 @@ export class RemoteStore implements TargetMetadataProvider {
'Unexpected network event when IndexedDB was marked failed.'
);
this.indexedDbFailed = true;

// Disable network and raise offline snapshots
await this.disableNetworkInternal();
this.onlineStateTracker.set(OnlineState.Offline);

// Probe IndexedDB periodically and re-enable network
this.asyncQueue.enqueueRetryable(async () => {
logDebug(LOG_TAG, 'Retrying IndexedDB access');
Expand Down