style: apply linter suggestions

This commit is contained in:
Edouard Vanbelle
2026-04-07 22:50:42 +02:00
parent 1ce29c101d
commit a4266a6e93
33 changed files with 444 additions and 437 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ const search = {
try {
const errorJson = await response.json();
errorText = errorJson.error || response.statusText;
} catch (e) {
} catch (_e) {
errorText = response.statusText;
}
console.error(`Search error: ${errorText}`);
@@ -142,7 +142,7 @@ const search = {
if (sortSelect) {
sortSelect.addEventListener('change', () => {
const searchInput = document.querySelector('.search-container input');
if (searchInput && searchInput.value.trim()) {
if (searchInput?.value.trim()) {
const event = new CustomEvent('search-resort', {
detail: { sort_by: sortSelect.value }
});