lib/fasterer/rescue_call.rb in fasterer-0.2.0 vs lib/fasterer/rescue_call.rb in fasterer-0.2.1
- old
+ new
@@ -13,13 +13,10 @@
def set_rescue_classes
return if element[1].sexp_type != :array
@rescue_classes = element[1].drop(1).map do |rescue_reference|
- if rescue_reference.sexp_type == :const
- rescue_reference[1]
- end
+ rescue_reference[1] if rescue_reference.sexp_type == :const
end.compact
end
-
end
end