Commit 7a3924fc by Vicent Marti

Fix overcomplicated return statement

Note to self: don't be stupid

Signed-off-by: Vicent Marti <tanoku@gmail.com>
parent 237da401
......@@ -1835,7 +1835,7 @@ int git_odb_exists(git_odb *db, const git_oid *id)
{
obj_location loc;
assert(db && id);
return locate_object(&loc, db, id) == OBJ_LOCATION_NOTFOUND ? 0 : 1;
return locate_object(&loc, db, id) != OBJ_LOCATION_NOTFOUND;
}
int git_odb_read_header(git_rawobj *out, git_odb *db, const git_oid *id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment