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
It would be nice if it would suggest all three in the first instance, rather than requiring one or two transformations first. I.e., suggest the refactoring from ternary to,
Not sure how i feel about this. Conditional is much terser and more idiomatic here for me. If anything, i'd support moving a two-branch switch expr to a conditional expr.
Brief description:
Light up the "Convert to switch expression" refactoring for ternary statements.
This is a style preference.
Code example that the analyzer should report:
Currently, the code
Sequentially has the possible refactorings,
It would be nice if it would suggest all three in the first instance, rather than requiring one or two transformations first. I.e., suggest the refactoring from ternary to,
The text was updated successfully, but these errors were encountered: