Use string interpolation in formatBytes

(cherry picked from commit 3508cb63dc0b2fbe0eddb00c8396a22705030f6f)

Closes #2495
pull/2497/head
Bogdan 2 years ago
parent 19eec0cb88
commit b44f4237d2

@ -7,11 +7,11 @@ function formatBytes(input, showBits = false) {
return ''; return '';
} }
return filesize(size, { return `${filesize(size, {
base: 2, base: 2,
round: 1, round: 1,
bits: showBits bits: showBits
}); })}`;
} }
export default formatBytes; export default formatBytes;

Loading…
Cancel
Save