We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3a4b23 commit d71c196Copy full SHA for d71c196
scripts/performance/lib/reportAsAPrComment.ts
@@ -145,9 +145,9 @@ function createMessage(
145
const baseSize = formatSize(baseBundleSizes[index].value)
146
const localSize = formatSize(localBundleSizes[diff.name])
147
const diffSize = formatSize(diff.change)
148
- const sign = typeof diff.percentageChange === 'number' && diff.percentageChange > 0 ? '+' : ''
+ const sign = (diff.percentageChange as number) > 0 ? '+' : ''
149
let status = '✅'
150
- if (typeof diff.percentageChange === 'number' && diff.percentageChange > SIZE_INCREASE_THRESHOLD) {
+ if ((diff.percentageChange as number) > SIZE_INCREASE_THRESHOLD) {
151
status = '⚠️'
152
highIncreaseDetected = true
153
}
0 commit comments