mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2026-05-27 05:02:49 +00:00
chore(cleanup): format code and move from js-beautify to prettier
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user