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 211f65b commit ad6ee2bCopy full SHA for ad6ee2b
scripts/performance/lib/reportAsAPrComment.ts
@@ -141,9 +141,9 @@ export function createMessage(
141
const baseSize = formatSize(baseBundleSizes[index].value)
142
const localSize = formatSize(localBundleSizes[diff.name])
143
const diffSize = formatSize(diff.change)
144
- const sign = typeof diff.percentageChange === 'number' && diff.percentageChange > 0 ? '+' : ''
+ const sign = (diff.percentageChange as number) > 0 ? '+' : ''
145
let status = '✅'
146
- if (typeof diff.percentageChange === 'number' && diff.percentageChange > SIZE_INCREASE_THRESHOLD) {
+ if ((diff.percentageChange as number) > SIZE_INCREASE_THRESHOLD) {
147
status = '⚠️'
148
highIncreaseDetected = true
149
}
0 commit comments