refactor: replace .forEach()
with for-of
(#39691)
* refactor: replace `.forEach()` with `for-of` * refactor docs/fiddles/features/web-hid/renderer.js
This commit is contained in:
parent
7858921a1f
commit
0b0707145b
32 changed files with 144 additions and 132 deletions
|
@ -461,7 +461,7 @@ const getNotes = async (fromRef, toRef, newVersion) => {
|
|||
toBranch
|
||||
};
|
||||
|
||||
pool.commits.forEach(commit => {
|
||||
for (const commit of pool.commits) {
|
||||
const str = commit.semanticType;
|
||||
if (commit.isBreakingChange) {
|
||||
notes.breaking.push(commit);
|
||||
|
@ -478,7 +478,7 @@ const getNotes = async (fromRef, toRef, newVersion) => {
|
|||
} else {
|
||||
notes.unknown.push(commit);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return notes;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue