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

[code quality] Unreachable code #4143

Closed
ilyash-b opened this issue Feb 19, 2023 · 1 comment
Closed

[code quality] Unreachable code #4143

ilyash-b opened this issue Feb 19, 2023 · 1 comment

Comments

@ilyash-b
Copy link

if (!params) {
return {
min: 0,
max: 0,
};
}

To the best of my understanding params will always evaluate to true because it's of type BetweenParams which is either array or an object, both of which evaluate to true. 99% sure.

@logaretm
Copy link
Owner

Sure, thanks for pointing that out.

This issue was closed.
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

No branches or pull requests

2 participants