---
title: "double-negation"
description: "Remove redundant double boolean negation."
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.

# double-negation

**Default severity:** `error`

Negating a boolean twice produces the original value. The expression is either
redundant or contains a mistaken extra `!`.

## Bad

```go
return !!ready
```

## Good

```go
return ready
```

Source: https://strider.gempir.com/lints/double-negation/index.mdx
