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

ESLint: use type-safe equality operators #1872

Merged
merged 2 commits into from
Oct 21, 2024
Merged

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Oct 21, 2024

Follow-up to #1373 (comment)

Checklist

Previous check of != null would fail on non-null falsey values. In
practice, I don't think Element.querySelector can return any falsey
values other than null. Nevertheless, it's good to be explicit that we
only care about null, i.e. no matches are found.¹

¹ https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelector#return_value
@victorlin victorlin self-assigned this Oct 21, 2024
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-victorlin-eslin-xkyeb5 October 21, 2024 16:26 Inactive
@victorlin victorlin merged commit 556d4fa into master Oct 21, 2024
25 checks passed
@victorlin victorlin deleted the victorlin/eslint-eqeqeq branch October 21, 2024 21:50
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.

3 participants