Skip to content

Instantly share code, notes, and snippets.

@nicolasblanco
Last active June 1, 2018 00:50
Show Gist options
  • Save nicolasblanco/b9deeef353bfcafd263d1137024e5b9f to your computer and use it in GitHub Desktop.
Save nicolasblanco/b9deeef353bfcafd263d1137024e5b9f to your computer and use it in GitHub Desktop.

Revisions

  1. Nicolas Blanco revised this gist Jun 1, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions 01.rb
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    if result = do_some_heavy_stuff
    if do_other_stuff(result)
    send_email
    if second_result = do_other_stuff(result)
    send_email(second_result)
    else
    # ...
    end
  2. Nicolas Blanco revised this gist Jun 1, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions 01.rb
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    if do_some_heavy_stuff
    if do_other_stuff
    if result = do_some_heavy_stuff
    if do_other_stuff(result)
    send_email
    else
    # ...
  3. Nicolas Blanco created this gist Jun 1, 2018.
    9 changes: 9 additions & 0 deletions 01.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    if do_some_heavy_stuff
    if do_other_stuff
    send_email
    else
    # ...
    end
    else
    # ...
    end