Fix various linter errors

This commit is contained in:
Girish Ramakrishnan
2026-02-15 19:37:30 +01:00
parent 510e1c7296
commit b5a1554631
24 changed files with 44 additions and 1607 deletions
+1 -1
View File
@@ -194,7 +194,7 @@ async function startTask(id, options) {
assert.ok(sudoError, 'sudo should have errored because task did not complete!');
// taskworker.sh forwards the exit code of the actual worker. It's either a raw signal number OR the exit code
let taskError = null;
let taskError;
if (sudoError.timedOut) taskError = { message: `Task ${id} timed out`, code: ETIMEOUT };
else if (sudoError.code === 70) taskError = { message: `Task ${id} stopped`, code: ESTOPPED }; // set by taskworker SIGTERM
else if (sudoError.code === 9 /* SIGKILL */) taskError = { message: `Task ${id} ran out of memory or terminated`, code: ECRASHED }; // SIGTERM with oom gets set as 2 by nodejs