Default severity: warning
A resultless function returns automatically after its final statement. An explicit bare return at that position adds no control-flow information.
Bad
func notify() {
sendNotification()
return
}Good
func notify() {
sendNotification()
}