mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove unnecessary check in Module#<; ref #4174
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user