mirror of
https://github.com/Readarr/Readarr
synced 2025-12-29 19:54:20 +01:00
Use string interpolation in formatBytes
(cherry picked from commit 3508cb63dc0b2fbe0eddb00c8396a22705030f6f) Closes #2495
This commit is contained in:
parent
19eec0cb88
commit
b44f4237d2
1 changed files with 2 additions and 2 deletions
|
|
@ -7,11 +7,11 @@ function formatBytes(input, showBits = false) {
|
|||
return '';
|
||||
}
|
||||
|
||||
return filesize(size, {
|
||||
return `${filesize(size, {
|
||||
base: 2,
|
||||
round: 1,
|
||||
bits: showBits
|
||||
});
|
||||
})}`;
|
||||
}
|
||||
|
||||
export default formatBytes;
|
||||
|
|
|
|||
Loading…
Reference in a new issue