Skip to content

chore(serve): refactor code to be more concise#974

Merged
evenstensberg merged 5 commits into
webpack:masterfrom
jamesgeorge007:feat/minor-refactor
Jul 6, 2019
Merged

chore(serve): refactor code to be more concise#974
evenstensberg merged 5 commits into
webpack:masterfrom
jamesgeorge007:feat/minor-refactor

Conversation

@jamesgeorge007

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?
refactoring

Did you add tests for your changes?
Nope

If relevant, did you update the documentation?
N/A

Summary
Refactored the serve action handler to a more concise form.

Does this PR introduce a breaking change?
Nope

Other information
N/A

@webpack-bot

Copy link
Copy Markdown

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

@ematipico

Copy link
Copy Markdown
Contributor

The commit message should be chore(serve)
feat() <= this addresses a new feature, in this case :)

@rishabh3112 rishabh3112 left a comment

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.

Change PR title too as @ematipico said

@jamesgeorge007 jamesgeorge007 changed the title feat(chore): refactor code to be more concise chore(serve): refactor code to be more concise Jun 28, 2019

@evenstensberg evenstensberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you add a little comment on the double array inddex accesses?

@webpack-bot

Copy link
Copy Markdown

@jamesgeorge007 Thanks for your update.

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

@rishabh3112 Please review the new changes.

Comment thread packages/serve/index.ts Outdated

@evenstensberg evenstensberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, nice work!

@evenstensberg
evenstensberg merged commit 6c766f8 into webpack:master Jul 6, 2019
@jamesgeorge007
jamesgeorge007 deleted the feat/minor-refactor branch July 7, 2019 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants