Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

if_same_then_else

What it does

Checks for branches in if blocks that are equivalent.

Why this is bad

This is most likely a copy and paste error.

Example

if foo then
    print(1)
else
    print(1)
end