chore(web): fix remaining real Codacy findings (2 of 6)

- htmx-config.js: two more unused catch bindings dropped (optional catch
  binding), matching the earlier fix.
- app-early.js: second forEach arrow (the stub updatePluginTabs copy)
  braced so the callback no longer returns tab.remove()'s value.

The other 4 findings ("Non-serializable expression must be wrapped with
$(...)") are deliberately NOT "fixed": that rule belongs to a
browser-automation (WebdriverIO-style) lint context and is misfiring on
ordinary arrow-function constants. Converting them to function
declarations would look compliant but BREAK the code - all four arrows
intentionally capture the enclosing Alpine component's `this` for the
stub-to-full enhancement logic. The right remedy is disabling that
pattern for this repo in Codacy's Code Patterns settings (or dismissing
the four findings), not a code change.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KEZK1P1Q1fu5pcuVrkrCFZ
This commit is contained in:
ChuckBuilds
2026-07-16 14:37:09 -04:00
co-authored by Claude Sonnet 5
parent 8044084280
commit c958630ce3
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -322,7 +322,7 @@
} }
// Clear existing plugin tabs (except Plugin Manager) // Clear existing plugin tabs (except Plugin Manager)
existingTabs.forEach(tab => tab.remove()); existingTabs.forEach(tab => { tab.remove(); });
debugLog('[STUB] updatePluginTabs: Cleared', existingTabs.length, 'existing tabs'); debugLog('[STUB] updatePluginTabs: Cleared', existingTabs.length, 'existing tabs');
// Add tabs for each installed plugin // Add tabs for each installed plugin
+2 -2
View File
@@ -182,11 +182,11 @@
(document.head || document.body).appendChild(newScript); (document.head || document.body).appendChild(newScript);
} }
} }
} catch (e) { } catch {
// Silently ignore script execution errors // Silently ignore script execution errors
} }
}); });
} catch (e) { } catch {
// Silently ignore errors in script processing // Silently ignore errors in script processing
} }
} }