Fix oxlint eqeqeq error: use !== null && !== undefined

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Chris Parsons 2026-03-23 08:49:22 -07:00
parent 1bdd5c3372
commit 784f6859e4
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
"hooks": [
{
"type": "command",
"command": "python3 -c \"import sys,json; d=json.load(sys.stdin); f=d.get('tool_input',{}).get('file_path',''); print(f)\" | xargs -I{} sh -c 'case \"{}\" in *.ts|*.tsx) npm run lint:file -- \"{}\" 2>&1 ;; esac'"
"command": "python3 -c \"import sys,json; d=json.load(sys.stdin); f=d.get('tool_input',{}).get('file_path',''); print(f)\" | xargs -I{} sh -c 'case \"{}\" in *.ts|*.tsx) npm run lint:path -- \"{}\" 2>&1 ;; esac'"
}
]
}

View file

@ -59,7 +59,7 @@ export async function loader({ params }: Route.LoaderArgs) {
const existingElos: Record<string, number> = {};
for (const ev of existingEVs) {
if (ev.sourceElo != null) {
if (ev.sourceElo !== null && ev.sourceElo !== undefined) {
existingElos[ev.participantId] = ev.sourceElo;
}
}