Skip to content

Commit 3bccef6

Browse files
committed
helpers.ts: for (const key in docs) -> for (const key of Object.keys(docs)) to fix the lint error: https://eslint.org/docs/latest/rules/guard-for-in
1 parent 51b3a44 commit 3bccef6

File tree

1 file changed

+1
-1
lines changed
  • packages/firestore/test/integration/util

1 file changed

+1
-1
lines changed

packages/firestore/test/integration/util/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export function withTestCollectionSettings<T>(
322322
let writeBatch_: WriteBatch | null = null;
323323
let writeBatchSize = 0;
324324

325-
for (const key in docs) {
325+
for (const key of Object.keys(docs)) {
326326
if (writeBatch_ === null) {
327327
writeBatch_ = writeBatch(setupDb);
328328
}

0 commit comments

Comments
 (0)