Skip to content

Commit 4842b2a

Browse files
committed
🎨 style: Remove duplicate import and enhance functionality
Removed duplicate `tryStat` import and added `prettyBytes` import.
1 parent b8abf60 commit 4842b2a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/core/src/file.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const dbg = debug("genaiscript:file")
77
* PDF, DOCX, XLSX, and CSV.
88
*/
99
import { DOCXTryParse } from "./docx"
10-
import { readText, tryStat, tryStat } from "./fs"
10+
import { readText, tryStat } from "./fs"
1111
import { lookupMime } from "./mime"
1212
import { isBinaryMimeType } from "./binary"
1313
import { createFetch } from "./fetch"

‎packages/core/src/transformers.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { hash } from "./crypto"
1717
import { PLimitPromiseQueue } from "./concurrency"
1818
import { deleteUndefinedValues } from "./cleaners"
1919
import { dotGenaiscriptPath } from "./workdir"
20+
import { prettyBytes } from "./pretty"
2021

2122
function progressBar(): ProgressCallback {
2223
const progress: Record<string, number> = {}

0 commit comments

Comments
 (0)