Chore: enable brace-style eslint check (#5159)

* eslint: enable brace-style check

* Fix jsdoc and color

* fix: correct CSS color syntax in CreateZenSliders function
This commit is contained in:
Cohee
2026-02-15 01:46:32 +02:00
committed by GitHub
parent 357da3219b
commit 4d1619ba47
62 changed files with 344 additions and 676 deletions
+6 -12
View File
@@ -82,8 +82,7 @@ function getAuthorFromUrl(url) {
result.name = pathSegments[0];
result.url = `${parsedUrl.protocol}//${parsedUrl.hostname}/${result.name}`;
}
}
catch (error) {
} catch (error) {
console.debug(DEBUG_PREFIX, 'Error parsing URL:', error);
}
@@ -199,8 +198,7 @@ async function downloadAssetsList(url) {
label.removeClass('fa-trash');
label.removeClass('redOverlayGlow');
});
}
else {
} else {
console.debug(DEBUG_PREFIX, 'not installed, unchecked');
element.prop('checked', false);
element.on('click', assetInstall);
@@ -346,8 +344,7 @@ async function installAsset(url, assetType, filename) {
console.debug(DEBUG_PREFIX, 'Character downloaded.');
}
}
}
catch (err) {
} catch (err) {
console.log(err);
return [];
}
@@ -373,8 +370,7 @@ async function deleteAsset(assetType, filename) {
if (result.ok) {
console.debug(DEBUG_PREFIX, 'Deletion success.');
}
}
catch (err) {
} catch (err) {
console.log(err);
return [];
}
@@ -427,8 +423,7 @@ async function updateCurrentAssets() {
headers: getRequestHeaders({ omitContentType: true }),
});
currentAssets = result.ok ? (await result.json()) : {};
}
catch (err) {
} catch (err) {
console.log(err);
}
console.debug(DEBUG_PREFIX, 'Current assets found:', currentAssets);
@@ -490,8 +485,7 @@ jQuery(async () => {
connectButton.addClass('fa-plug-circle-exclamation');
connectButton.removeClass('redOverlayGlow');
}
}
else {
} else {
console.debug(DEBUG_PREFIX, 'Connection refused by user');
}
});