Skip to content

Commit

Permalink
Remove redundant check.
Browse files Browse the repository at this point in the history
  • Loading branch information
tadd committed Aug 7, 2023
1 parent fbaa6f4 commit 5e5e134
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/int.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ def self.error(error)
end

def coerce(other)
if other.kind_of?(self.class)
# do nothing
elsif scala?(other)
if scala?(other)
other = new(*[other]*2)
else
raise "Unknown class #{other.class}: #{other}"
Expand Down

0 comments on commit 5e5e134

Please sign in to comment.