Skip to content

Commit

Permalink
more idiomatic, more better
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsche committed Feb 15, 2024
1 parent a1d3eb7 commit 8c45383
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doxygen-awesome/doxygen-awesome-godbolt.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ class DoxygenAwesomeGodbolt extends HTMLElement {
const content = this.previousSibling.cloneNode(true);
let textContent = DoxygenAwesomeGodbolt.getContent(content);

for (const entry in this.replacements) {
for (const [before, after] of Object.entries(replacements)) {
// replace includes with compiler explorer friendly alternatives
textContent = textContent.replace(entry, this.replacements[entry]);
textContent = textContent.replace(before, after);
}

const clientstate = {
Expand Down Expand Up @@ -124,7 +124,7 @@ class DoxygenAwesomeGodbolt extends HTMLElement {
settings.id = head.trim();
settings.options = magic_line.substr(head.length).trimStart();
}
return {'language': language, 'settings': settings};
return {language, settings};
}
}

Expand Down

0 comments on commit 8c45383

Please sign in to comment.