Skip to content

Commit

Permalink
remove redundant else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmario committed Jun 13, 2012
1 parent 1511008 commit 04fb90d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/rugged/rugged_object.c
Expand Up @@ -228,11 +228,11 @@ static VALUE rugged_object_rev_parse(VALUE klass, VALUE rb_repo, VALUE rb_spec,

if (as_obj) {
return rugged_object_new(rb_repo, object);
} else {
ret = rugged_create_oid(git_object_id(object));
git_object_free(object);
return ret;
}

ret = rugged_create_oid(git_object_id(object));
git_object_free(object);
return ret;
}

VALUE rb_git_object_rev_parse(VALUE klass, VALUE rb_repo, VALUE rb_spec)
Expand Down

0 comments on commit 04fb90d

Please sign in to comment.