forked from mirrors/misskey
chore(dev): fix typo
This commit is contained in:
parent
8186742c0f
commit
4bacb1bfbe
1 changed files with 1 additions and 1 deletions
2
.github/scripts/frontend-js-size.mjs
vendored
2
.github/scripts/frontend-js-size.mjs
vendored
|
|
@ -44,7 +44,7 @@ function formatNumber(value) {
|
|||
return numberFormatter.format(value);
|
||||
}
|
||||
|
||||
function formatBytes(size) {
|
||||
function formatBytes(value) {
|
||||
if (!Number.isFinite(value) || value <= 0) return '0 B';
|
||||
|
||||
const units = ['B', 'KiB', 'MiB', 'GiB'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue