Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

events: remove unnecessary checks #9330

Merged
merged 1 commit into from
Oct 31, 2016
Merged

events: remove unnecessary checks #9330

merged 1 commit into from
Oct 31, 2016

Commits on Oct 31, 2016

  1. events: remove unnecessary checks

    This commit removes two truthy checks for object properties that
    are immediately followed by a strict equality check. The other
    item in the comparison is guaranteed to be a function by this
    point in the code, so the truthy check is redundant.
    
    PR-URL: nodejs#9330
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    cjihrig committed Oct 31, 2016
    Configuration menu
    Copy the full SHA
    7f909c3 View commit details
    Browse the repository at this point in the history