Remove unused error variable in logger catch block

The catch block intentionally ignores all errors to prevent infinite
loops, so the error value is never used. Use bare catch syntax.
This commit is contained in:
Pedram Amini
2026-02-04 14:33:49 -06:00
parent c3309e05ed
commit 1a888973d2

View File

@@ -193,7 +193,7 @@ class Logger extends EventEmitter {
console.info(message, entry.data || ''); console.info(message, entry.data || '');
break; break;
} }
} catch (err) { } catch {
// Silently ignore EPIPE errors - console is disconnected // Silently ignore EPIPE errors - console is disconnected
// Other errors are also ignored to prevent infinite loops // Other errors are also ignored to prevent infinite loops
} }