mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 08:34:14 +01:00
fix lint issues
This commit is contained in:
parent
e1f040ce89
commit
98f4a38683
1 changed files with 1 additions and 1 deletions
|
|
@ -325,7 +325,7 @@ export default {
|
|||
},
|
||||
|
||||
formatBytes(bytes) {
|
||||
if (!bytes || Number.isNaN(bytes)) return '0 B';
|
||||
if (bytes == null || isNaN(bytes)) return '0 B';
|
||||
const k = 1024;
|
||||
const sizes = ['B', 'KB', 'MB', 'GB', 'TB'];
|
||||
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
||||
|
|
|
|||
Loading…
Reference in a new issue