1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-11 06:56:22 +02:00

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'
This commit is contained in:
Junio C Hamano 2022-06-03 14:30:35 -07:00
commit d8c8dccbaa

View File

@ -2628,12 +2628,8 @@ int read_loose_object(const char *path,
goto out;
}
switch (unpack_loose_header(&stream, map, mapsize, hdr, sizeof(hdr),
NULL)) {
case ULHR_OK:
break;
case ULHR_BAD:
case ULHR_TOO_LONG:
if (unpack_loose_header(&stream, map, mapsize, hdr, sizeof(hdr),
NULL) != ULHR_OK) {
error(_("unable to unpack header of %s"), path);
goto out;
}