---
title: "constant-logical-expr"
description: "Detect constant logical expressions."
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.

# constant-logical-expr

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

**Default severity:** `warning`

Detect constant logical expressions.

## Bad

```go
if false && connected { start() }
```

## Good

```go
if ready && connected { start() }
```

Source: https://strider.gempir.com/lints/constant-logical-expr/index.mdx
