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

no-array-callback-reference false positive when using ternary #2288

Closed
William5553 opened this issue Feb 23, 2024 · 0 comments · Fixed by #2289
Closed

no-array-callback-reference false positive when using ternary #2288

William5553 opened this issue Feb 23, 2024 · 0 comments · Fixed by #2289
Assignees

Comments

@William5553
Copy link

William5553 commented Feb 23, 2024

no-array-callback-reference has a false positive when using a ternary operator for filter()

return matchData.cycles.filter(
	isTeleop() 
		? cycle => cycle.score.time >= 18 
		: cycle => cycle.score.time < 18
).length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants