> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove-Redundant-Boolean

#### Sourcery rule id: `remove-redundant-boolean`

#### Description

Remove unnecessary boolean value


#### Before

```javascript
while (first_condition && true && second_condition) {
  do_something();
}
```

#### After

```javascript
while (first_condition && second_condition) {
  do_something();
}
```



#### Explanation

This rule removes unnecessary `true` values from `&&` boolean operators, since
`something && true` has exactly the same meaning as `something`
