Skip to content

Commit

Permalink
coderabbit changes
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
AjayvirS and coderabbitai[bot] authored Dec 11, 2024
1 parent 9b21bc9 commit 2430998
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class PlagiarismCasesInstructorViewComponent implements OnInit {
private getGroupedPlagiarismCasesByExercise(cases: PlagiarismCase[]): GroupedPlagiarismCases {
// Pre-collect exercises to avoid side effects in reduce
this.exercisesWithPlagiarismCases = cases
.map(case => case.exercise)
.map(plagiarismCase => plagiarismCase.exercise)

Check failure on line 179 in src/main/webapp/app/course/plagiarism-cases/instructor-view/plagiarism-cases-instructor-view.component.ts

View workflow job for this annotation

GitHub Actions / client-style

Replace `plagiarismCase` with `(plagiarismCase)`
.filter((exercise): exercise is Exercise => exercise !== null && exercise !== undefined);

return cases.reduce((acc: GroupedPlagiarismCases, plagiarismCase) => {
Expand Down

0 comments on commit 2430998

Please sign in to comment.