Ruby

Ruby

Made by DeepSource

Empty expression detected RB-LI1017

Bug risk
Major

Bad practice

foo = ()
if ()
  bar
end

Recommended

foo = (an_expr)
if (another_expr)
  bar
end