Apply suggestion from @aikido-pr-checks[bot]

Co-authored-by: aikido-pr-checks[bot] <169896070+aikido-pr-checks[bot]@users.noreply.github.com>
This commit is contained in:
Reinier Criel 2026-04-07 14:58:52 -07:00 committed by GitHub
parent f54c9233e1
commit ab9840d3bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,9 @@ function cleanupLegacyShellInit() {
let shells;
try {
shells = detectShells();
} catch {
} catch (error) {
// Best-effort cleanup — skip if shell detection fails
console.warn("Failed to detect shells for legacy cleanup:", error);
return;
}