Skip to content

Commit 851b955

Browse files
committedMay 4, 2023
Do not format std value if falsy
1 parent 735e602 commit 851b955

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎packages/cli/src/output/table.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ export const renderStatsTable = (
8888

8989
const stats = [
9090
chalk.keyword(getDurationColor(meanValue))(`${formatNumber(meanValue)} ms`),
91-
chalk.keyword(getDurationColor(stdValue))(`${formatNumber(stdValue)} ms`),
91+
stdValue
92+
? chalk.keyword(getDurationColor(stdValue))(
93+
`${formatNumber(stdValue)} ms`
94+
)
95+
: '-',
9296
chalk.keyword(getDurationColor(q5Value))(`${formatNumber(q5Value)} ms`),
9397
chalk.keyword(getDurationColor(q95Value))(`${formatNumber(q95Value)} ms`),
9498
chalk.keyword(getDurationColor(q99Value))(`${formatNumber(q99Value)} ms`)

1 commit comments

Comments
 (1)

vercel[bot] commented on May 4, 2023

@vercel[bot]
Please sign in to comment.