Skip to content

Commit

Permalink
mrb: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 7, 2016
1 parent cfe0062 commit 644dea1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/mrb/mrb_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,7 @@ object_equal(mrb_state *mrb, mrb_value self)

object = DATA_PTR(self);
other_object = DATA_PTR(mrb_other);
if (object == other_object) {
return mrb_true_value();
} else {
return mrb_false_value();
}
return mrb_bool_value(object == other_object);
}

static mrb_value
Expand Down

0 comments on commit 644dea1

Please sign in to comment.