Skip to content

Commit c841322

Browse files
committed
fix: move inline comments above code for linting compliance
Move inline comments in download-lock.ts and dlx-binary.ts to be positioned above the code they describe rather than inline, as required by linting rules.
1 parent 9cb4f19 commit c841322

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/dlx-binary.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,10 @@ async function downloadBinary(
9999
// Use downloadWithLock to handle concurrent download protection.
100100
// This prevents corruption when multiple processes try to download the same binary.
101101
await downloadWithLock(url, destPath, {
102-
staleTimeout: 10_000, // Align with npm's npx locking strategy
103-
lockTimeout: 120_000, // Allow up to 2 minutes for large binary downloads
102+
// Align with npm's npx locking strategy.
103+
staleTimeout: 10_000,
104+
// Allow up to 2 minutes for large binary downloads.
105+
lockTimeout: 120_000,
104106
})
105107

106108
// Compute checksum of downloaded file.

src/download-lock.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ export async function downloadWithLock(
192192
lockTimeout = 60_000,
193193
locksDir,
194194
pollInterval = 1000,
195-
staleTimeout = 10_000, // Aligned with npm's npx locking (5-10s range)
195+
// Aligned with npm's npx locking (5-10s range).
196+
staleTimeout = 10_000,
196197
...downloadOptions
197198
} = { __proto__: null, ...options } as DownloadWithLockOptions
198199

0 commit comments

Comments
 (0)