From 455cedb3c379ff582f3cd965f3fed6110f5f2112 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 23 Oct 2026 01:49:01 +0200 Subject: [PATCH] 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 --- scripts/gpu-tenancy.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gpu-tenancy.mjs b/scripts/gpu-tenancy.mjs index e26f9b6..b726854 100644 --- a/scripts/gpu-tenancy.mjs +++ b/scripts/gpu-tenancy.mjs @@ -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; }