Skip to content

Commit 87664f1

Browse files
committed
fix: merge duplicate time-utils imports in human.ts
Consolidate two separate imports from time-utils.js into a single import statement at the top of the file. Removes the mid-file import that was left from the circular import refactor.
1 parent 1794244 commit 87664f1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib/formatters/human.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import {
3939
} from "./markdown.js";
4040
import { sparkline } from "./sparkline.js";
4141
import { type Column, writeTable } from "./table.js";
42-
import { computeSpanDurationMs } from "./time-utils.js";
42+
import { computeSpanDurationMs, formatRelativeTime } from "./time-utils.js";
4343

4444
// Color tag maps
4545

@@ -200,9 +200,6 @@ export function formatStatusLabel(status: string | undefined): string {
200200
);
201201
}
202202

203-
// formatRelativeTime moved to time-utils.ts to break circular import
204-
import { formatRelativeTime } from "./time-utils.js";
205-
206203
// Issue Formatting
207204

208205
/** Quantifier suffixes indexed by groups of 3 digits (K=10^3, M=10^6, …, E=10^18) */

0 commit comments

Comments
 (0)