From 7503d059f0856bf44428289a6f36c082d2894d1d Mon Sep 17 00:00:00 2001 From: Michael Kogan Date: Thu, 17 Oct 2024 01:07:39 +0400 Subject: [PATCH] Add empty line after guard clause in Nested Conditionals --- README.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.adoc b/README.adoc index 132e6c29..8c0289e0 100644 --- a/README.adoc +++ b/README.adoc @@ -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 ---- @@ -1923,6 +1926,7 @@ end # good [0, 1, 2, 3].each do |item| next unless item > 1 + puts item end ----