mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-01 05:04:06 +00:00
Fix overcomplicated return statement
Note to self: don't be stupid Signed-off-by: Vicent Marti <tanoku@gmail.com>
This commit is contained in:
parent
237da40181
commit
7a3924fc38
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user