Skip to content

Commit 7cc6072

Browse files
lint fix and requested changes
1 parent a82af7e commit 7cc6072

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ export class Collection<TSchema extends Document = Document> {
10741074
typeof indexNameOrOptions === 'object' ? indexNameOrOptions : options == null ? {} : options;
10751075

10761076
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
1077-
const cleanedOptions = (({ readConcern, writeConcern, ...rest }) => rest)(options);
1077+
const { readConcern, writeConcern, ...cleanedOptions } = options;
10781078

10791079
const indexName =
10801080
indexNameOrOptions == null

test/integration/index-management/search-index-management.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { join } from 'path';
2-
31
import { loadSpecTests } from '../../spec';
42
import { runUnifiedSuite } from '../../tools/unified-spec-runner/runner';
53

0 commit comments

Comments
 (0)