Skip to content

Commit 7fc5fd8

Browse files
committed
refactor: remove unused BYTES_PER_MEGABYTE export
Caught by Cursor Bugbot review: the export had no callers (anywhere in src/, the routes, or the tests) and the comment "Exposed for /health and any future callers" was speculative. Drop it; if a future caller needs the constant we can add it back at that point.
1 parent 613336d commit 7fc5fd8

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/utils/disk-space.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,6 @@ export const __invalidateDiskSpaceCacheForTests = () => {
319319
inflight = null;
320320
};
321321

322-
// Exposed for /health and any future callers that want to format MB.
323-
export const BYTES_PER_MEGABYTE = BYTES_PER_MB;
324-
325322
// Methods that should be rejected when severity === 'block'. DELETE is
326323
// intentionally omitted so operators can free space without restarting.
327324
// Note: a pathological large CASCADE DELETE can still trigger SQLITE_FULL

0 commit comments

Comments
 (0)