Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: no-else-return false positive for ifs in single-statement positi…
…on (#8338) Fixing errors from no-else-return requires splitting a single statement into two statements. This means that there is no reasonable fix for the errors when the if statement is in a position where only a single statement is allowed, so the rule should not report this case.
- Loading branch information
1 parent
6a718ba
commit d064ba2
Showing
2 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters