fix: add missing process.exit(0) to early return in post-edit-console-warn hook

This commit is contained in:
Affaan Mustafa
2026-02-16 20:03:07 -08:00
parent 5cb9c1c2a5
commit 2c26d2d67c

View File

@@ -28,7 +28,7 @@ process.stdin.on('end', () => {
if (filePath && /\.(ts|tsx|js|jsx)$/.test(filePath)) {
const content = readFile(filePath);
if (!content) { process.stdout.write(data); return; }
if (!content) { process.stdout.write(data); process.exit(0); }
const lines = content.split('\n');
const matches = [];