Misleading example for Style/GuardClause · Issue #9227 · rubocop/rubocop
The example in the documentation for Style/GuardClause is misleading because mentioned bad and good version don#t match execution. It says # bad if something foo || raise('exception') else ok end #...