Remove unnecessary check in `Module#<`; ref #4174

parent 6ef4a5fd
...@@ -10,7 +10,6 @@ class Module ...@@ -10,7 +10,6 @@ class Module
# "class A < B" implies "A < B".) # "class A < B" implies "A < B".)
# #
def <(other) def <(other)
raise TypeError, 'compared with non class/module' unless other.is_a?(Module)
if self.equal?(other) if self.equal?(other)
false false
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment