---
title: "redundant-switch-break"
description: "Remove an unlabeled break at the end of a switch case."
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-switch-break

**Default severity:** `warning`

Go switch cases do not fall through unless they explicitly use `fallthrough`.
An unlabeled `break` as the final statement of a case is therefore redundant.

## Bad

```go
switch value {
case 1:
	use(value)
	break
}
```

## Good

```go
switch value {
case 1:
	use(value)
}
```

Source: https://strider.gempir.com/lints/redundant-switch-break/index.mdx
