You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code gives the following two corrections.
prev ? curr != prev : curr != 0
Use the return of the conditional for variable assignment and comparison. [[Correctable] Style/ConditionalAssignment]
Use double pipes `||` instead. [[Correctable] Style/RedundantCondition]
It is unclear what is both wrong and recommended, even from the documentation. No issues refer to both corrections.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The following code gives the following two corrections.
prev ? curr != prev : curr != 0
It is unclear what is both wrong and recommended, even from the documentation. No issues refer to both corrections.
Beta Was this translation helpful? Give feedback.
All reactions