summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-12-04 08:40:23 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-12-04 08:40:23 +0900
commitd5d9cc8b62bd173375046d07fc62b75c3e2d807e (patch)
tree1bbd2031d07e81c9d372fb6a2c10b61f4acb829d
parent6ef4a5fd6b28375ec7c4f066cf8c5364256f83fd (diff)
downloadmruby-d5d9cc8b62bd173375046d07fc62b75c3e2d807e.tar.gz
mruby-d5d9cc8b62bd173375046d07fc62b75c3e2d807e.zip
Remove unnecessary check in `Module#<`; ref #4174
-rw-r--r--mrbgems/mruby-class-ext/mrblib/module.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/mrbgems/mruby-class-ext/mrblib/module.rb b/mrbgems/mruby-class-ext/mrblib/module.rb
index 484d63674..8102b5417 100644
--- a/mrbgems/mruby-class-ext/mrblib/module.rb
+++ b/mrbgems/mruby-class-ext/mrblib/module.rb
@@ -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