Skip to content

Simplify for loop in EntryPoint.getFiles - #6455

Merged
sokra merged 2 commits into
webpack:nextfrom
Connormiha:simplify-for-loop-entry-point
Feb 9, 2018
Merged

sokra merged 2 commits into
webpack:nextfrom
Connormiha:simplify-for-loop-entry-point

Conversation

@Connormiha

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?
Refactoring

Did you add tests for your changes?

No

If relevant, link to documentation update:

N/A

Summary

Used for of instead of classic for

Does this PR introduce a breaking change?
No

Other information

Comment thread lib/Entrypoint.js Outdated
for(let fileIdx = 0; fileIdx < this.chunks[chunkIdx].files.length; fileIdx++) {
files.add(this.chunks[chunkIdx].files[fileIdx]);
for(const chunk of this.chunks) {
for(const file of chunk) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you mean of chunk.files?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, typo.

@webpack-bot

Copy link
Copy Markdown
Contributor

@Connormiha Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@niieani Please review the new changes.

@webpack-bot

Copy link
Copy Markdown
Contributor

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@sokra
sokra merged commit f135651 into webpack:next Feb 9, 2018
@sokra

sokra commented Feb 9, 2018

Copy link
Copy Markdown
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants