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

refactor: replace ==/!= with ===/!== #2935

Merged
merged 1 commit into from
May 23, 2023
Merged

Conversation

deepsource-autofix[bot]
Copy link
Contributor

Comparing to null without a type-checking operator (=== or !==), can have unintended results as the comparison will evaluate to true when comparing to not just a null, but also an undefined value.

Comparing to `null` without a type-checking operator (`===` or `!==`), can have unintended results as the comparison will evaluate to `true` when comparing to not just a `null`, but also an `undefined` value.
@deepsource-autofix deepsource-autofix bot requested a review from bigint as a code owner May 23, 2023 03:17
@vercel
Copy link

vercel bot commented May 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
prerender ✅ Ready (Inspect) Visit Preview May 23, 2023 3:21am
web ✅ Ready (Inspect) Visit Preview May 23, 2023 3:21am

@bigint bigint changed the title replace ==/!= with ===/!== refactor: replace ==/!= with ===/!== May 23, 2023
@bigint bigint merged commit 4e57cb7 into main May 23, 2023
5 of 8 checks passed
@bigint bigint deleted the deepsource-autofix-d23ce640 branch May 23, 2023 03:18
@vercel vercel bot temporarily deployed to Preview – prerender May 23, 2023 03:19 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant