Remove unnecessary check in Module#<; ref #4174

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-12-04 08:40:23 +09:00
parent 6ef4a5fd6b
commit d5d9cc8b62
-1
View File
@@ -10,7 +10,6 @@ class Module
# "class A < B" implies "A < B".)
#
def <(other)
raise TypeError, 'compared with non class/module' unless other.is_a?(Module)
if self.equal?(other)
false
else