From 176642db75a7d1281be14cf94d87097247e26f3f Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Sun, 4 Jan 2026 23:21:26 -0600 Subject: [PATCH] fix(call): simplify error handling in audio processing by removing unused catch parameters --- .../src/frontend/components/call/CallPage.vue | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/meshchatx/src/frontend/components/call/CallPage.vue b/meshchatx/src/frontend/components/call/CallPage.vue index fb7d64a..b6d339a 100644 --- a/meshchatx/src/frontend/components/call/CallPage.vue +++ b/meshchatx/src/frontend/components/call/CallPage.vue @@ -2373,7 +2373,7 @@ export default { } else { this.stopWebAudio(); } - } catch (e) { + } catch { // revert on failure this.config.telephone_web_audio_enabled = !newVal; } @@ -2497,7 +2497,9 @@ export default { if (this.audioProcessor) { try { this.audioProcessor.disconnect(); - } catch (_) {} + } catch { + // ignore + } this.audioProcessor = null; } if (this.audioStream) { @@ -2507,7 +2509,9 @@ export default { if (this.audioWs) { try { this.audioWs.close(); - } catch (_) {} + } catch { + // ignore + } this.audioWs = null; } if (this.remoteAudioEl) { @@ -2517,13 +2521,17 @@ export default { if (this.audioWorkletNode) { try { this.audioWorkletNode.disconnect(); - } catch (_) {} + } catch { + // ignore + } this.audioWorkletNode = null; } if (this.audioSilentGain) { try { this.audioSilentGain.disconnect(); - } catch (_) {} + } catch { + // ignore + } this.audioSilentGain = null; } },