Skip to content

Commit 5cb6724

Browse files
niekertCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 47d3006 commit 5cb6724

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/google-search-console/src/formatStat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const statUnits = ["", "K", "M", "B", "T", "P", "E"] as const
22

33
export function formatStat(value: number) {
44
if (!Number.isFinite(value)) {
5-
throw new Error("Value must be finite")
5+
return "—"
66
}
77

88
const sign = value < 0 ? "-" : ""

0 commit comments

Comments
 (0)