Skip to content

Commit ad6ee2b

Browse files
committed
🐛remove number type checks
1 parent 211f65b commit ad6ee2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/performance/lib/reportAsAPrComment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ export function createMessage(
141141
const baseSize = formatSize(baseBundleSizes[index].value)
142142
const localSize = formatSize(localBundleSizes[diff.name])
143143
const diffSize = formatSize(diff.change)
144-
const sign = typeof diff.percentageChange === 'number' && diff.percentageChange > 0 ? '+' : ''
144+
const sign = (diff.percentageChange as number) > 0 ? '+' : ''
145145
let status = '✅'
146-
if (typeof diff.percentageChange === 'number' && diff.percentageChange > SIZE_INCREASE_THRESHOLD) {
146+
if ((diff.percentageChange as number) > SIZE_INCREASE_THRESHOLD) {
147147
status = '⚠️'
148148
highIncreaseDetected = true
149149
}

0 commit comments

Comments
 (0)