Definitely think this is a bug in rubocop.

Style/ConditionalAssignment: Use the return of the conditional for variable assignment and comparison.
case other ...

Occurs in this code:

def ===(other)
case other
when IPRange
@range === other.range
else
@range === other
end
end

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Replies