Skip to content

Commit 36d9d94

Browse files
committed
minor cleanup
1 parent fa7d5ac commit 36d9d94

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/hub/cli.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,10 @@ import { version } from "./package.json";
1111
import type { CommitProgressEvent } from "./src/lib/commit";
1212
import type { MultiBar, SingleBar } from "cli-progress";
1313

14-
// Import types for cli-progress (available at compile time even with dynamic imports)
15-
// type MultiBar = import("cli-progress").MultiBar;
16-
// type SingleBar = import("cli-progress").SingleBar;
17-
1814
// Progress bar manager for handling multiple file uploads
1915
class UploadProgressManager {
2016
private multibar: MultiBar | null = null;
2117
private fileBars: Map<string, SingleBar> = new Map();
22-
private currentPhase: string = "";
2318
private readonly isQuiet: boolean;
2419
private cliProgressAvailable: boolean = false;
2520
private events: Array<CommitProgressEvent> = [];
@@ -54,7 +49,6 @@ class UploadProgressManager {
5449
if (this.isQuiet) return;
5550

5651
if (event.event === "phase") {
57-
this.currentPhase = event.phase;
5852
this.logPhase(event.phase);
5953
} else if (event.event === "fileProgress") {
6054
this.updateFileProgress(event.path, event.progress, event.state);
@@ -121,9 +115,6 @@ class UploadProgressManager {
121115
if (!this.isQuiet && this.cliProgressAvailable && this.multibar) {
122116
this.multibar.stop();
123117
}
124-
for (const event of this.events) {
125-
console.log(event);
126-
}
127118
}
128119
}
129120

0 commit comments

Comments
 (0)