summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-11-14 22:07:48 +0200
committerVicent Marti <tanoku@gmail.com>2010-11-16 02:59:24 +0200
commit7a3924fc38b63313e84c6339d2fd56084f5aeea6 (patch)
tree5bc5d45cbfa267721cc654ae1d71cef3855dd903 /src
parent237da40181daa416e25527aee35173a1cd5ad92b (diff)
downloadlibgit2-7a3924fc38b63313e84c6339d2fd56084f5aeea6.tar.gz
Fix overcomplicated return statement
Note to self: don't be stupid Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/odb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb.c b/src/odb.c
index bf5ad7ca4..fc07a1716 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -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)