mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-03 07:15:24 +00:00
Use string interpolation in formatBytes
(cherry picked from commit 3508cb63dc0b2fbe0eddb00c8396a22705030f6f) Closes #2495
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user