Skip to content
Snippets Groups Projects
Commit c4e0bea9 authored by dakkar's avatar dakkar
Browse files

don't return early -- should fix #626

I have no clue why I wrote that code 😭
parent f5560783
No related branches found
No related tags found
2 merge requests!620Bump version,!604don't return early -- should fix #626
......@@ -98,9 +98,9 @@ export class AbuseReportService {
const shouldForward = paramsMap.get(report.id)!.forward;
if (shouldForward && report.targetUserHost != null) {
return targetUserMap.set(report.id, await this.usersRepository.findOneByOrFail({ id: report.targetUserId }));
targetUserMap.set(report.id, await this.usersRepository.findOneByOrFail({ id: report.targetUserId }));
} else {
return targetUserMap.set(report.id, null);
targetUserMap.set(report.id, null);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment