mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-02 13:35:02 +08:00
refactor: prefer for of instead of forEach
This commit is contained in:
parent
47f3163267
commit
5a6d2eca47
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue