Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

folding ruby methods with rescue blocks doesn't work as expected #731

Closed
ymendel opened this issue Aug 20, 2013 · 2 comments
Closed

folding ruby methods with rescue blocks doesn't work as expected #731

ymendel opened this issue Aug 20, 2013 · 2 comments
Labels

Comments

@ymendel
Copy link

ymendel commented Aug 20, 2013

Folding

def enabled?
  rand(100) < GitHub.transient_redis.hget("science.percent_enabled", name).to_i
rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EAGAIN
  false
end

gave me

def enabled? ...
rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EAGAIN
  false
end

where I'd expect

def enabled? ...
@kevinsawicki
Copy link
Contributor

Moved over to atom/language-ruby#3

@lock
Copy link

lock bot commented Jan 27, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants