Skip to content

redundant-final-return

Default severity: warning

A resultless function returns automatically after its final statement. An explicit bare return at that position adds no control-flow information.

func notify() {
sendNotification()
return
}
func notify() {
sendNotification()
}