From 1598be4e9e3b4cba513304ef20c3ff8a50ef4cd5 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 14 May 2026 22:29:47 +0000 Subject: [PATCH] Fix lint: replace != null with !== null && !== undefined oxlint enforces eqeqeq; the five != null checks in mls.ts were flagged. https://claude.ai/code/session_01WhzXHpv6taXdHzhgvnv83u --- app/services/standings-sync/mls.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/services/standings-sync/mls.ts b/app/services/standings-sync/mls.ts index 359edef..e5d91f8 100644 --- a/app/services/standings-sync/mls.ts +++ b/app/services/standings-sync/mls.ts @@ -131,7 +131,7 @@ export class MlsStandingsAdapter implements StandingsSyncAdapter { const playoffSeedStat = sm.get("playoffSeed"); const conferenceRank = - playoffSeedStat?.value != null + playoffSeedStat?.value !== null && playoffSeedStat?.value !== undefined ? Math.round(playoffSeedStat.value) : playoffSeedStat?.displayValue ? parseInt(playoffSeedStat.displayValue, 10) || undefined @@ -146,10 +146,10 @@ export class MlsStandingsAdapter implements StandingsSyncAdapter { wins: Math.round(wins), losses: Math.round(losses), ties: Math.round(ties), - tablePoints: tablePoints != null ? Math.round(tablePoints) : undefined, - goalsFor: goalsFor != null ? Math.round(goalsFor) : undefined, - goalsAgainst: goalsAgainst != null ? Math.round(goalsAgainst) : undefined, - goalDifference: goalDifference != null ? Math.round(goalDifference) : undefined, + tablePoints: tablePoints !== null && tablePoints !== undefined ? Math.round(tablePoints) : undefined, + goalsFor: goalsFor !== null && goalsFor !== undefined ? Math.round(goalsFor) : undefined, + goalsAgainst: goalsAgainst !== null && goalsAgainst !== undefined ? Math.round(goalsAgainst) : undefined, + goalDifference: goalDifference !== null && goalDifference !== undefined ? Math.round(goalDifference) : undefined, winPct: gamesPlayed > 0 ? wins / gamesPlayed : 0, gamesPlayed, conference: normalizeConference(conference),