@@ -2464,25 +2464,25 @@ static void install_result(struct gh__request_params *params,
24642464 install_prefetch (params , status );
24652465 return ;
24662466 }
2467- }
2468-
2469- if (!strcmp (status -> content_type .buf , "application/x-git-packfile" )) {
2470- assert (params -> b_is_post );
2471- assert (params -> objects_mode == GH__OBJECTS_MODE__POST );
2467+ } else {
2468+ if (!strcmp (status -> content_type .buf , "application/x-git-packfile" )) {
2469+ assert (params -> b_is_post );
2470+ assert (params -> objects_mode == GH__OBJECTS_MODE__POST );
24722471
2473- install_packfile (params , status );
2474- return ;
2475- }
2472+ install_packfile (params , status );
2473+ return ;
2474+ }
24762475
2477- if (!strcmp (status -> content_type .buf ,
2478- "application/x-git-loose-object" )) {
2479- /*
2480- * We get these for "gvfs/objects" GET and POST requests.
2481- *
2482- * Note that this content type is singular, not plural.
2483- */
2484- install_loose (params , status );
2485- return ;
2476+ if (!strcmp (status -> content_type .buf ,
2477+ "application/x-git-loose-object" )) {
2478+ /*
2479+ * We get these for "gvfs/objects" GET and POST requests.
2480+ *
2481+ * Note that this content type is singular, not plural.
2482+ */
2483+ install_loose (params , status );
2484+ return ;
2485+ }
24862486 }
24872487
24882488 strbuf_addf (& status -> error_message ,
0 commit comments