Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 390 Bytes

Lint-EmptyBlock.md

File metadata and controls

21 lines (13 loc) · 390 Bytes

Pattern: Empty block

Issue: -

Description

Such empty blocks are typically an oversight or we should provide a comment be clearer what we’re aiming for.

Examples

# bad
items.each { |item| }

# good
items.each { |item| puts item }

Further Reading