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 explicit-length-check #950

Merged
merged 14 commits into from Dec 22, 2020

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented Dec 22, 2020

This PR simplify #943

Main change, we're switching check if (foo.length) {} from "outer-to-inner" to "inner-to-outer".
By changing the logic, we are able to simplify the rule.

@fisker fisker marked this pull request as ready for review December 22, 2020 07:52
@fisker fisker merged commit 582ca34 into sindresorhus:master Dec 22, 2020
@fisker fisker deleted the explicit-length-check-refactor branch December 22, 2020 07:54
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