-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: broad improvments #33
base: main
Are you sure you want to change the base?
Conversation
028413d
to
a31b3c1
Compare
8fe559a
to
c7ea117
Compare
109a0b2
to
f2bb1d4
Compare
f2bb1d4
to
2f492ba
Compare
2f492ba
to
50dfb60
Compare
This pull request introduces 1 alert when merging 1103604 into b9f24f9 - view on LGTM.com new alerts:
|
else val[val.length] = toA; | ||
} else this.headers[key] = toA; | ||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-boolean-literal-compare, max-len, no-unused-expressions, max-statements-per-line, eqeqeq | ||
if (val !== undefined) if (Array.isArray(val) == false) (this.headers[key] = [val, toA]); else (val[val.length] = toA); |
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.
Strict equality isn't necessary here:
if (val !== undefined) if (Array.isArray(val) == false) (this.headers[key] = [val, toA]); else (val[val.length] = toA); | |
if (val != undefined) if (Array.isArray(val) == false) (this.headers[key] = [val, toA]); else (val[val.length] = toA); |
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.
@tbnritzdoge didn't we work out that strict equality ended up being faster in this instance?
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.
i thought we found out the opposite
No description provided.