[ruby] merge if/else with if/elsif/else

No need to add extra lines to the output. Shorter is better :)
pull/77/head
Dmitriy Non 5 years ago committed by GitHub
parent ed061663ba
commit 4cabda0a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,13 +22,7 @@ end
end
# Conditionals
if 2 * 4 == 8
puts 'thank goodness'
else
puts 'error between keyboard and chair'
end
# Add an extra condition
if 1 == 0
puts 'oh no'
elsif 1 == 1

Loading…
Cancel
Save