diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-01-05 18:53:06 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-01-05 18:53:06 +0400 |
commit | 5ae0c34d1a8af43e124466352bf33ead5f128f56 (patch) | |
tree | 010b1047a6f305ef4b84982d2d1e2d8eb3245c37 /LibGit2Sharp/ObjectId.cs | |
parent | f2216121813678da5e7a51fe069cc202fb4255d8 (diff) |
Refactor retrieval and dereferencing of GitObjects
Diffstat (limited to 'LibGit2Sharp/ObjectId.cs')
-rw-r--r-- | LibGit2Sharp/ObjectId.cs | 2 |
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) |