lib/parser/ruby23.y in parser-2.6.4.1 vs lib/parser/ruby23.y in parser-2.6.5.0
- old
+ new
@@ -80,10 +80,10 @@
{
rescue_bodies = val[1]
else_t, else_ = val[2]
ensure_t, ensure_ = val[3]
- if rescue_bodies.empty? && !else_.nil?
+ if rescue_bodies.empty? && !else_t.nil?
diagnostic :warning, :useless_else, nil, else_t
end
result = @builder.begin_body(val[0],
rescue_bodies,