---
title: "redundant-final-return"
description: "Remove a bare return at the end of a resultless function."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

## Bad

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

## Good

```go
func notify() {
	sendNotification()
}
```

Source: https://strider.gempir.com/lints/redundant-final-return/index.mdx
