Mutation triage: drop a redundant null guard in parseFreeMiB

String(null) and String(undefined) already fail the integer test, so the
?? "" guard decided nothing; the Stryker mutant of it survived.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-23 01:49:01 +02:00
commit 455cedb3c3

View file

@ -73,7 +73,7 @@ export async function admitThen(gate, job) {
// nvidia-smi's first line is the free MiB as a base-10 integer; anything else is null.
export function parseFreeMiB(stdout) {
const line = String(stdout ?? "").split("\n")[0].trim();
const line = String(stdout).split("\n")[0].trim();
return /^\d+$/.test(line) ? Number(line) : null;
}