mirror of
https://github.com/koloml/philomena-tagging-assistant.git
synced 2026-11-07 16:18:19 +00:00
Sonar: Replacing regular for with for..of
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user