You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case x
when y then 1
when z # do nothing
else
3
end
Probably it'd be better to encourage people to use an explicit nil as a return value. And we definitely need a cop checking for nil returns, as those are evil (but that's another matter).
The text was updated successfully, but these errors were encountered:
Code like this is valid, but slightly confusing:
Probably it'd be better to encourage people to use an explicit
nil
as a return value. And we definitely need a cop checking fornil
returns, as those are evil (but that's another matter).The text was updated successfully, but these errors were encountered: