mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-21 05:20:18 -05:00
Merge branch 'jk/loose-object-fsck'
Code cleanup. * jk/loose-object-fsck: sha1_file: remove an used fd variable
This commit is contained in:
@@ -3972,7 +3972,6 @@ int read_loose_object(const char *path,
|
||||
void **contents)
|
||||
{
|
||||
int ret = -1;
|
||||
int fd = -1;
|
||||
void *map = NULL;
|
||||
unsigned long mapsize;
|
||||
git_zstream stream;
|
||||
@@ -4022,7 +4021,5 @@ int read_loose_object(const char *path,
|
||||
out:
|
||||
if (map)
|
||||
munmap(map, mapsize);
|
||||
if (fd >= 0)
|
||||
close(fd);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user