Skip to content

Commit c698681

Browse files
fix lint
1 parent 5636ca1 commit c698681

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/collection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,8 @@ export class Collection<TSchema extends Document = Document> {
573573
* @param options - Optional settings for the command
574574
*/
575575
async isCapped(options?: OperationOptions): Promise<boolean> {
576-
const collectionOptions = await this.options(options);
577-
return Boolean(collectionOptions?.isCapped);
576+
const { capped } = await this.options(options);
577+
return Boolean(capped);
578578
}
579579

580580
/**

src/db.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,13 @@ export class Db {
359359
): ListCollectionsCursor<CollectionInfo>;
360360
listCollections<
361361
T extends Pick<CollectionInfo, 'name' | 'type'> | CollectionInfo =
362-
| Pick<CollectionInfo, 'name' | 'type'>
363-
| CollectionInfo
362+
| Pick<CollectionInfo, 'name' | 'type'>
363+
| CollectionInfo
364364
>(filter?: Document, options?: ListCollectionsOptions & Abortable): ListCollectionsCursor<T>;
365365
listCollections<
366366
T extends Pick<CollectionInfo, 'name' | 'type'> | CollectionInfo =
367-
| Pick<CollectionInfo, 'name' | 'type'>
368-
| CollectionInfo
367+
| Pick<CollectionInfo, 'name' | 'type'>
368+
| CollectionInfo
369369
>(
370370
filter: Document = {},
371371
options: ListCollectionsOptions & Abortable = {}

0 commit comments

Comments
 (0)