Skip to content

[EarlyReturn] Remove ReturnBinaryAndToEarlyReturnRector as creates code hard to read and flips condition#4478

Merged
TomasVotruba merged 1 commit intomainfrom
tv-binary-and
Jul 11, 2023
Merged

[EarlyReturn] Remove ReturnBinaryAndToEarlyReturnRector as creates code hard to read and flips condition#4478
TomasVotruba merged 1 commit intomainfrom
tv-binary-and

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented Jul 11, 2023

Looking at the rule many years after it was made, this only creates accademically correct code, but very confusing to read by humans 😆 . Also the condition flip is quite a challange and might lead to unexpected results.

These should be handled manually when make sense, depends on context 👍

@TomasVotruba TomasVotruba enabled auto-merge (squash) July 11, 2023 15:46
@TomasVotruba TomasVotruba merged commit db16e33 into main Jul 11, 2023
@TomasVotruba TomasVotruba deleted the tv-binary-and branch July 11, 2023 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant