chore(cleanup): format code and move from js-beautify to prettier

This commit is contained in:
Joxit
2022-04-09 00:02:52 +02:00
parent ab12cceefc
commit 49fcba3f6c
21 changed files with 373 additions and 302 deletions

View File

@@ -4,7 +4,7 @@ export function bytesToSize(bytes) {
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
if (bytes == undefined || isNaN(bytes)) {
return '?';
} else if (bytes == 0) {
} else if (bytes === 0) {
return '0 Byte';
}
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));