mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Use string interpolation in formatBytes
(cherry picked from commit 3508cb63dc0b2fbe0eddb00c8396a22705030f6f) Closes #3673
This commit is contained in:
parent
7abf35d491
commit
0dcfb9eec8
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue