Skip to content

Commit 8658195

Browse files
committed
remove unused filter passing
1 parent cb3e45c commit 8658195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/db/src/study/SessionController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ export class SessionController extends Loggable {
252252
this.log(report);
253253
}
254254

255-
private async getNewCards(n: number = 10, filter?: (c: string) => boolean) {
255+
private async getNewCards(n: number = 10) {
256256
const perCourse = Math.ceil(n / this.sources.length);
257-
const newContent = await Promise.all(this.sources.map((c) => c.getNewCards(perCourse, filter)));
257+
const newContent = await Promise.all(this.sources.map((c) => c.getNewCards(perCourse)));
258258

259259
// [ ] is this a noop?
260260
newContent.forEach((newContentFromSource) => {

0 commit comments

Comments
 (0)