Skip to content

refactor: remove unnecessary condition#1505

Merged
mcollina merged 1 commit intofastify:masterfrom
clarkdo:remove-always-true
Mar 6, 2019
Merged

refactor: remove unnecessary condition#1505
mcollina merged 1 commit intofastify:masterfrom
clarkdo:remove-always-true

Conversation

@clarkdo
Copy link
Copy Markdown
Contributor

@clarkdo clarkdo commented Mar 5, 2019

Remove the condition check which is always true

Checklist

  • run npm run test and npm run benchmark
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message and code follows Code of conduct

Copy link
Copy Markdown
Member

@delvedor delvedor left a comment

Choose a reason for hiding this comment

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

LGTM

@delvedor delvedor added the internals Change that won't impact the surface API. label Mar 5, 2019
Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@cemremengu cemremengu left a comment

Choose a reason for hiding this comment

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

@delvedor === true for micro optimisation? :)

@mcollina
Copy link
Copy Markdown
Member

mcollina commented Mar 6, 2019

Not really, this is just a leftover from refactoring.

@mcollina mcollina merged commit b2bdfee into fastify:master Mar 6, 2019
@github-actions
Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

internals Change that won't impact the surface API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants