Pattern: Use of x == nil
Issue: -
This rule checks for comparison of something with nil using ==
.
# bad
if x == nil
# good
if x.nil?
Pattern: Use of x == nil
Issue: -
This rule checks for comparison of something with nil using ==
.
# bad
if x == nil
# good
if x.nil?