Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1903,8 +1903,11 @@ end
# good
def compute_thing(thing)
return unless thing[:foo]

update_with_bar(thing[:foo])

return re_compute(thing) unless thing[:foo][:bar]

partial_compute(thing)
end
----
Expand All @@ -1923,6 +1926,7 @@ end
# good
[0, 1, 2, 3].each do |item|
next unless item > 1

puts item
end
----
Expand Down