Skip to content

Commit 678d2ab

Browse files
committed
fix(bytestosize): remove extra parenthesis
1 parent 7ead795 commit 678d2ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Common/Node/bytesToSize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const bytesToSize = bytes => {
66
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB']
77
if (bytes === 0) return 'n/a'
88
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10)
9-
if (i === 0) return `${bytes} ${sizes[i]})`
9+
if (i === 0) return `${bytes} ${sizes[i]}`
1010
return `${(bytes / 1024 ** i).toFixed(1)} ${sizes[i]}`
1111
}
1212

0 commit comments

Comments
 (0)