enhancementgood first issuehelp wantedneeded
Repository metrics
- Stars
- (571 stars)
- PR merge metrics
- (PR metrics pending)
Description
Implement the rule, which will detect useless scoped functions, and remove extra actions.
For example, in a bundle of let - run it can be quite often met situations, when run contain single statement,
which is actually will work without run:
someValue?.let {
foo()
}
?: run {
bar()
}
Expected behavior
someValue?.let {
foo()
}
?: bar()