Throw rather than return.

Otherwise the finally {} block won't run.
This commit is contained in:
D. Berge
2023-10-04 14:49:35 +02:00
parent d07565807c
commit 2e11c574c2

View File

@@ -46,7 +46,7 @@ class ReportLineChangeTime {
const forward = (cur.old?.labels?.includes("LGSP") || cur.new?.labels?.includes("LGSP"));
if (!projectId) {
WARNING("No projectID found in event", cur);
throw {message: "No projectID found in event", cur};
return;
}