summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2015-01-20 23:24:32 +0200
committerJacques Germishuys <jacquesg@striata.com>2015-01-20 23:24:32 +0200
commit526182d28c42bba3ae6b16940438d800f99285d5 (patch)
tree7b6df69e4759697812297f549319f3d94260046c
parent2136240dbd35cf2b4308f92008a24c0c36665811 (diff)
downloadlibgit2-526182d28c42bba3ae6b16940438d800f99285d5.tar.gz
Remove logically dead code (we're already asserting)
-rw-r--r--src/repository.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.c b/src/repository.c
index 0cf8eb66b..f49a25124 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -1836,7 +1836,7 @@ int git_repository_hashfile(
*/
error = git_path_join_unrooted(
- &full_path, path, repo ? git_repository_workdir(repo) : NULL, NULL);
+ &full_path, path, git_repository_workdir(repo), NULL);
if (error < 0)
return error;