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

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

**Default severity:** `warning`

Detect repeated if-chain conditions.

## Bad

```go
if ready { one() } else if ready { two() }
```

## Good

```go
if first { one() } else if second { two() }
```

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