fix: reorder imports and clean up unused ones across various components

This commit is contained in:
Mauricio Siu
2026-05-08 18:45:44 -06:00
parent 14af5d293a
commit 4a3fa6e63f
24 changed files with 29 additions and 29 deletions
+1 -1
View File
@@ -108,7 +108,6 @@ export * from "./utils/notifications/docker-cleanup";
export * from "./utils/notifications/dokploy-restart";
export * from "./utils/notifications/server-threshold";
export * from "./utils/notifications/utils";
export * from "./verification/send-verification-email";
export * from "./utils/process/execAsync";
export * from "./utils/process/spawnAsync";
export * from "./utils/providers/bitbucket";
@@ -134,4 +133,5 @@ export * from "./utils/traefik/types";
export * from "./utils/traefik/web-server";
export * from "./utils/volume-backups/index";
export * from "./utils/watch-paths/should-deploy";
export * from "./verification/send-verification-email";
export * from "./wss/utils";
@@ -18,7 +18,7 @@ function formatBytes(bytes?: number) {
if (bytes === 0) return "0 B";
const sizes = ["B", "KB", "MB", "GB", "TB"];
const i = Math.floor(Math.log(bytes) / Math.log(1024));
const value = bytes / Math.pow(1024, i);
const value = bytes / 1024 ** i;
return `${value.toFixed(2)} ${sizes[i]} (${bytes} bytes)`;
}