---
title: "boolean-literal-comparison"
description: "Simplify comparisons between booleans and literals."
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.

# boolean-literal-comparison

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

**Default severity:** `warning`

Simplify comparisons between booleans and literals.

## Bad

```go
if ready == true { start() }
```

## Good

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

Source: https://strider.gempir.com/lints/boolean-literal-comparison/index.mdx
