Closed 11joselu closed 2 years ago
Excellent suggestion and thanks for the detailed report @11joselu 👏 The Tennis refactoring kata is a great one. Hopefully, it will be even faster to do with Abracadabra now 😉
@all-contributors please add @11joselu for ideas
@nicoespeon
I've put up a pull request to add @11joselu! :tada:
Describe what's missing
Convert Switch case with only a default case to if-statement
How would it work
Given this input
Expected behavior
The output should be
Screenshots
Right now the extension is not able to detect this case
Additional information
How we arrive into a switch with only a default case?
Doing Tennis Refactoring Kata After some refactor I endend at L34 with
To simplify more the code. I can convert that switch to if an then apply "Remove Dead Code".