Inspectopedia
 
2024.3

'then' in multiline 'if'/'unless' block

Warning
New
Last modified: 03 December 2024

Reports redundant then keywords in multiline if/unless blocks.

Example:

A quick-fix is available to remove the then keyword.

Inspired by 'RuboCop'.