---
title: "identical-switch-conditions"
description: "Detect repeated switch conditions."
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.

# identical-switch-conditions

<!-- Code generated by docs/scripts/generate-check-docs.go; DO NOT EDIT. -->

**Default severity:** `warning`

Detect repeated switch conditions.

## Bad

```go
switch { case ready: one(); case ready: two() }
```

## Good

```go
switch { case first: one(); case second: two() }
```

Source: https://strider.gempir.com/lints/identical-switch-conditions/index.mdx
