refactor: prefer for of instead of forEach

This commit is contained in:
Miodec 2024-03-24 18:06:18 +01:00
parent 47f3163267
commit 5a6d2eca47

View file

@ -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, " "),
@ -54,7 +54,7 @@ export function update(): void {
UpdateConfig.setCustomThemeColors(theme.colors);
},
});
});
}
}
export default commands;