Merge branch 'jk/loose-object-fsck'
Code cleanup. * jk/loose-object-fsck: sha1_file: remove an used fd variable
This commit is contained in:
commit
d7f8a37852
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user