Created
June 16, 2020 21:36
-
-
Save caius/25f984560daca1ddfbe7ea040faf95eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# What I expect it to be corrected to: | |
# | |
# something = begin | |
# raise "thing" | |
# rescue => e | |
# p e | |
# end | |
# What it's actually corrected to (standard gem v0.4.7) | |
something = begin | |
raise "thing" | |
rescue => e | |
p e | |
end | |
p something | |
## Reasoning | |
# | |
# Assigning a thing whilst nesting if/else doesn't bring them inline with if, but start of line: | |
other_thing = if :a == :b | |
p "uh oh" | |
else | |
p "no match" | |
end | |
p other_thing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment