Fix oxlint eqeqeq error: use !== null && !== undefined
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1bdd5c3372
commit
784f6859e4
2 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
"hooks": [
|
"hooks": [
|
||||||
{
|
{
|
||||||
"type": "command",
|
"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'"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ export async function loader({ params }: Route.LoaderArgs) {
|
||||||
|
|
||||||
const existingElos: Record<string, number> = {};
|
const existingElos: Record<string, number> = {};
|
||||||
for (const ev of existingEVs) {
|
for (const ev of existingEVs) {
|
||||||
if (ev.sourceElo != null) {
|
if (ev.sourceElo !== null && ev.sourceElo !== undefined) {
|
||||||
existingElos[ev.participantId] = ev.sourceElo;
|
existingElos[ev.participantId] = ev.sourceElo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue