Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-01-05 18:53:06 +0400
committernulltoken <emeric.fermas@gmail.com>2012-01-05 18:53:06 +0400
commit5ae0c34d1a8af43e124466352bf33ead5f128f56 (patch)
tree010b1047a6f305ef4b84982d2d1e2d8eb3245c37 /LibGit2Sharp/ObjectId.cs
parentf2216121813678da5e7a51fe069cc202fb4255d8 (diff)
Refactor retrieval and dereferencing of GitObjects
Diffstat (limited to 'LibGit2Sharp/ObjectId.cs')
-rw-r--r--LibGit2Sharp/ObjectId.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGit2Sharp/ObjectId.cs b/LibGit2Sharp/ObjectId.cs
index 640b1fc9..d386b2c1 100644
--- a/LibGit2Sharp/ObjectId.cs
+++ b/LibGit2Sharp/ObjectId.cs
@@ -99,7 +99,7 @@ namespace LibGit2Sharp
{
result = BuildFrom(sha, false, true);
- return (result == null) ? false : true;
+ return result != null;
}
private static GitOid? BuildOidFrom(string sha, bool shouldThrowIfInvalid, bool allowShortIdentifier)