1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-29 23:45:58 -04:00

undo eslint curly rule

This commit is contained in:
2021-08-30 13:40:04 -04:00
parent cf1a8dc453
commit 5e3507a594
5 changed files with 82 additions and 69 deletions
+6 -2
View File
@@ -27,11 +27,15 @@ if (wrapper && canonical) {
// finally inject the hits...
const counter = document.getElementById("hit-counter");
if (counter) counter.appendChild(document.createTextNode(hitsComma));
if (counter) {
counter.appendChild(document.createTextNode(hitsComma));
}
// ...and hide the loading spinner
const spinner = document.getElementById("hit-spinner");
if (spinner) spinner.style.display = "none";
if (spinner) {
spinner.style.display = "none";
}
} else {
// something went horribly wrong, initiate coverup
wrapper.style.display = "none";
+6 -2
View File
@@ -14,7 +14,9 @@ if (wrapper) {
<a class="repo-name" href="${repo.url}" target="_blank" rel="noopener">${repo.name}</a>
${(() => {
if (repo.description) return html`<p class="repo-description">${repo.description}</p>`;
if (repo.description) {
return html`<p class="repo-description">${repo.description}</p>`;
}
})()}
${(() => {
if (repo.language) {
@@ -75,7 +77,9 @@ if (wrapper) {
});
// we're done, hide the loading spinner
if (spinner) spinner.style.display = "none";
if (spinner) {
spinner.style.display = "none";
}
// the repo descriptions were added after the first twemoji parsing
twemoji.parse(wrapper, {