Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/org/jruby/RubyModule.java
Original file line number Diff line number Diff line change
@@ -1866,9 +1866,9 @@ public boolean equals(Object other) {
@JRubyMethod(name = "==", required = 1)
@Override
public IRubyObject op_equal(ThreadContext context, IRubyObject other) {
if(!(other instanceof RubyModule))
return context.runtime.getFalse();
RubyModule otherModule = (RubyModule)other;
if(!(other instanceof RubyModule)) return context.runtime.getFalse();

RubyModule otherModule = (RubyModule) other;
if(otherModule.isIncluded()) {
return context.runtime.newBoolean(otherModule.isSame(this));
} else {

0 comments on commit 2457421

Please sign in to comment.