Skip to content

Commit dd280c6

Browse files
[AUTOMATED]: Prettier Code Styling
1 parent b86b756 commit dd280c6

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

packages/firestore/src/remote/remote_store.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,7 @@ export class RemoteStore implements TargetMetadataProvider {
514514
* enabled and the write pipeline is not full).
515515
*/
516516
private canAddToWritePipeline(): boolean {
517-
return (
518-
this.canUseNetwork && this.writePipeline.length < MAX_PENDING_WRITES
519-
);
517+
return this.canUseNetwork && this.writePipeline.length < MAX_PENDING_WRITES;
520518
}
521519

522520
// For testing

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,12 +1246,15 @@ describeSpec('Writes:', [], () => {
12461246
}
12471247
);
12481248

1249-
specTest('Mutation are not sent twice after primary failover', ['multi-client'], () => {
1250-
const query = Query.atPath(path('collection'));
1251-
const docA = doc('collection/a', 0, { k: 'a' });
1252-
const docB = doc('collection/b', 0, { k: 'b' });
1249+
specTest(
1250+
'Mutation are not sent twice after primary failover',
1251+
['multi-client'],
1252+
() => {
1253+
const query = Query.atPath(path('collection'));
1254+
const docA = doc('collection/a', 0, { k: 'a' });
1255+
const docB = doc('collection/b', 0, { k: 'b' });
12531256

1254-
return client(0)
1257+
return client(0)
12551258
.expectPrimaryState(true)
12561259
.userSets('collection/a', { k: 'a' })
12571260
.userSets('collection/b', { k: 'b' })
@@ -1265,6 +1268,7 @@ describeSpec('Writes:', [], () => {
12651268
.stealPrimaryLease()
12661269
.writeAcks('collection/b', 2000)
12671270
.userListens(query)
1268-
.expectEvents(query, { added: [docA, docB], fromCache:true} )
1269-
});
1271+
.expectEvents(query, { added: [docA, docB], fromCache: true });
1272+
}
1273+
);
12701274
});

0 commit comments

Comments
 (0)