Redundant 'return'
Reports usages of return
where it can be omitted, i.e., in all single-expression closures, getters, and functions.
Suggests removing redundant return
.
Example:
func thinkDeeply() { return 42 }
After the quick-fix is applied:
func thinkDeeply() { 42 }
Inspection Details | |
---|---|
Available in: | AppCode 2023.3 |
Plugin: | Swift Language Support, 233.SNAPSHOT |
Last modified: 13 July 2023