Sonar: Replacing regular for with for..of

This commit is contained in:
koloml committed 2026-10-17 05:48:50 +02:00
1 parent 971f9b8a60
commit 37a8e77f97
1 file changed
+1 -4
@@ -64,9 +64,7 @@ export default class TagsListToggler extends BaseComponent {
const hasStoredChanges = this.hasChanges;
for (let tagIndex = 0; tagIndex < toggleableTags.length; tagIndex++) {
const tagName = toggleableTags[tagIndex];
for (const tagName of toggleableTags) {
if (this.#renderedTags.has(tagName)) {
continue;
}
@@ -74,7 +72,6 @@ export default class TagsListToggler extends BaseComponent {
this.#renderedTags.add(tagName);
const tagElement = TagsListToggler.#buildTagElement(tagName);
this.#tagsList.push(tagElement);
const isPresent = activeTags.has(tagName);