-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Always use strict equality #1225
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1225 +/- ##
=======================================
Coverage 99.38% 99.38%
=======================================
Files 4 4
Lines 484 484
Branches 130 130
=======================================
Hits 481 481
Partials 3 3
Continue to review full report at Codecov.
|
I think the reason for all these
There was a time when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@medanat, can you update this PR !!
@3imed-jaberi done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@medanat, please check this suggesstion !!
onFinish(this.res, destroy.bind(null, val)); | ||
ensureErrorHandler(val, err => this.ctx.onerror(err)); | ||
|
||
// overwriting | ||
if (null != original && original != val) this.remove('Content-Length'); | ||
if (null != original && original !== val) this.remove('Content-Length'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (null != original && original !== val) this.remove('Content-Length'); | |
if (null !== original && original !== val) this.remove('Content-Length'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the nature of type coercion with nulls, I'm not sure this will be a safe move.
null == undefined -> true, null === undefined -> false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀 !!
No description provided.