Skip to content

Commit

Permalink
Trivial single line conditional with no {}. Made into one-liner
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Nov 10, 2014
1 parent 34173fd commit 2457421
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/org/jruby/RubyModule.java
Expand Up @@ -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 {
Expand Down

0 comments on commit 2457421

Please sign in to comment.