Skip to content

Commit

Permalink
Merge pull request #174 from martelogan/fix-unnecessary-t_hash-check
Browse files Browse the repository at this point in the history
Fix unnecessary T_HASH check
  • Loading branch information
tagomoris committed Oct 10, 2019
2 parents acc07af + 0b1bf90 commit 94de501
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ext/msgpack/unpacker_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ VALUE MessagePack_Unpacker_initialize(int argc, VALUE* argv, VALUE self)
VALUE v = argv[0];
if(rb_type(v) == T_HASH) {
options = v;
if(rb_type(options) != T_HASH) {
rb_raise(rb_eArgError, "expected Hash but found %s.", rb_obj_classname(options));
}
} else {
io = v;
}
Expand Down

0 comments on commit 94de501

Please sign in to comment.