Skip to content

Commit

Permalink
[compiler] Replace for...in with for...of for array of strings (#…
Browse files Browse the repository at this point in the history
…30631)

closes #30627

Thanks!
  • Loading branch information
saul-atomrigs authored Aug 8, 2024
1 parent a037dab commit 8b31835
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function isFilePartOfSources(
return sources(filename);
}

for (const prefix in sources) {
for (const prefix of sources) {
if (filename.indexOf(prefix) !== -1) {
return true;
}
Expand Down

0 comments on commit 8b31835

Please sign in to comment.