Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove redundant else statement

  • Loading branch information...
commit 04fb90d89573f583e446a4968fe30bf4772fb8ee 1 parent 1511008
@brianmario brianmario authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 ext/rugged/rugged_object.c
View
8 ext/rugged/rugged_object.c
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.