mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
refactor: prefer for of instead of forEach
This commit is contained in:
parent
47f3163267
commit
5a6d2eca47
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue