Merge branch 'ds/object-file-unpack-loose-header-fix'
Coding style fix. * ds/object-file-unpack-loose-header-fix: object-file: convert 'switch' back to 'if'maint
commit
d8c8dccbaa
|
|
@ -2628,12 +2628,8 @@ int read_loose_object(const char *path,
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (unpack_loose_header(&stream, map, mapsize, hdr, sizeof(hdr),
|
if (unpack_loose_header(&stream, map, mapsize, hdr, sizeof(hdr),
|
||||||
NULL)) {
|
NULL) != ULHR_OK) {
|
||||||
case ULHR_OK:
|
|
||||||
break;
|
|
||||||
case ULHR_BAD:
|
|
||||||
case ULHR_TOO_LONG:
|
|
||||||
error(_("unable to unpack header of %s"), path);
|
error(_("unable to unpack header of %s"), path);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue