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:
@@ -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";
|
||||
|
||||
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user