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
Junio C Hamano 2022-06-03 14:30:35 -07:00
commit d8c8dccbaa
1 changed files with 2 additions and 6 deletions

View File

@ -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;
} }