Skip to content

Commit

Permalink
refactor: prefer for of instead of forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Mar 24, 2024
1 parent 47f3163 commit 5a6d2ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/ts/commandline/lists/custom-themes-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function update(): void {
if (snapshot.customThemes?.length === 0) {
return;
}
snapshot.customThemes.forEach((theme) => {
for (const theme of snapshot.customThemes) {
subgroup.list.push({
id: "setCustomThemeId" + theme._id,
display: theme.name.replace(/_/gi, " "),
Expand All @@ -54,7 +54,7 @@ export function update(): void {
UpdateConfig.setCustomThemeColors(theme.colors);
},
});
});
}
}

export default commands;

0 comments on commit 5a6d2ec

Please sign in to comment.