Skip to content

Commit 3f2399c

Browse files
aryguptclaude
andcommitted
style(chart-utils): satisfy oxfmt format check
Collapse two else-if conditions that fit on one line; oxfmt --check flagged chart-utils.ts in CI (oxc job). No logic change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent d63103c commit 3f2399c

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

packages/app/src/lib/chart-utils.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,7 @@ export function markRooflinePoints(
777777
newPoint.measuredPrefillAvgPower
778778
) {
779779
newPoint.measuredPrefillAvgPower.roof = onCurrentRoofline;
780-
} else if (
781-
chartDefYKey === 'y_measuredDecodeAvgPower' &&
782-
newPoint.measuredDecodeAvgPower
783-
) {
780+
} else if (chartDefYKey === 'y_measuredDecodeAvgPower' && newPoint.measuredDecodeAvgPower) {
784781
newPoint.measuredDecodeAvgPower.roof = onCurrentRoofline;
785782
} else if (
786783
chartDefYKey === 'y_measuredJPerOutputToken' &&
@@ -789,10 +786,7 @@ export function markRooflinePoints(
789786
newPoint.measuredJPerOutputToken.roof = onCurrentRoofline;
790787
} else if (chartDefYKey === 'y_measuredJPerTotalToken' && newPoint.measuredJPerTotalToken) {
791788
newPoint.measuredJPerTotalToken.roof = onCurrentRoofline;
792-
} else if (
793-
chartDefYKey === 'y_measuredJPerInputToken' &&
794-
newPoint.measuredJPerInputToken
795-
) {
789+
} else if (chartDefYKey === 'y_measuredJPerInputToken' && newPoint.measuredJPerInputToken) {
796790
newPoint.measuredJPerInputToken.roof = onCurrentRoofline;
797791
}
798792
}

0 commit comments

Comments
 (0)