diff options
-rw-r--r-- | class.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1353,7 +1353,7 @@ rb_prepend_module(VALUE klass, VALUE module) if (RB_TYPE_P(klass, T_MODULE)) { rb_subclass_entry_t *iclass = RCLASS_SUBCLASSES(klass); // skip the placeholder subclass entry at the head of the list if it exists - if (iclass && iclass->next) { + if (iclass) { RUBY_ASSERT(!iclass->klass); iclass = iclass->next; } |