Remove logically dead code (we're already asserting)
diff --git a/src/repository.c b/src/repository.c
index 0cf8eb6..f49a251 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;