]> git.proxmox.com Git - libgit2.git/commitdiff
Remove logically dead code (we're already asserting)
authorJacques Germishuys <jacquesg@striata.com>
Tue, 20 Jan 2015 21:24:32 +0000 (23:24 +0200)
committerJacques Germishuys <jacquesg@striata.com>
Tue, 20 Jan 2015 21:24:32 +0000 (23:24 +0200)
src/repository.c

index 0cf8eb66b611c527c0fa5c3dd6eb6467d1eac246..f49a25124e3de6b5a3853132918386668da84ac6 100644 (file)
@@ -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;