chore: fix lint warnings and run formating

This commit is contained in:
LukeGus committed 2026-06-04 14:23:53 -05:00
1 parent 52f4e51ae0
commit dccaae07ab
4 files changed
+14 -35

No files matched your search

+9 -2
View File
@@ -1144,7 +1144,10 @@ export function formatDurationMs(ms?: number): string {
}
interface TransferProgressTracker {
update(status: TransferProgressResponse): { rate: number | undefined; stalled: boolean };
update(status: TransferProgressResponse): {
rate: number | undefined;
stalled: boolean;
};
}
export function createTransferProgressTracker(): TransferProgressTracker {
@@ -1159,7 +1162,11 @@ export function createTransferProgressTracker(): TransferProgressTracker {
const now = Date.now();
const bytes = status.bytesTransferred;
if (bytes !== undefined && lastBytes !== undefined && lastTime !== undefined) {
if (
bytes !== undefined &&
lastBytes !== undefined &&
lastTime !== undefined
) {
const deltaBytes = bytes - lastBytes;
const deltaMs = now - lastTime;
if (deltaMs > 0 && deltaBytes >= 0) {