summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'class.c')
-rw-r--r--class.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/class.c b/class.c
index e680dc7..6aed94a 100644
--- a/class.c
+++ b/class.c
@@ -365,12 +365,7 @@ rb_include_module(klass, module)
if (NIL_P(module)) return;
if (klass == module) return;
- switch (TYPE(module)) {
- case T_MODULE:
- case T_CLASS:
- case T_ICLASS:
- break;
- default:
+ if (TYPE(module) != T_MODULE) {
Check_Type(module, T_MODULE);
}