Skip to content

Commit d71c196

Browse files
committed
test removing number type checks
1 parent d3a4b23 commit d71c196

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
@@ -145,9 +145,9 @@ function createMessage(
145145
const baseSize = formatSize(baseBundleSizes[index].value)
146146
const localSize = formatSize(localBundleSizes[diff.name])
147147
const diffSize = formatSize(diff.change)
148-
const sign = typeof diff.percentageChange === 'number' && diff.percentageChange > 0 ? '+' : ''
148+
const sign = (diff.percentageChange as number) > 0 ? '+' : ''
149149
let status = '✅'
150-
if (typeof diff.percentageChange === 'number' && diff.percentageChange > SIZE_INCREASE_THRESHOLD) {
150+
if ((diff.percentageChange as number) > SIZE_INCREASE_THRESHOLD) {
151151
status = '⚠️'
152152
highIncreaseDetected = true
153153
}

0 commit comments

Comments
 (0)