Skip to content

Commit

Permalink
fixup! lib/repo-pull: Factor out enqueue function for FetchObjectData
Browse files Browse the repository at this point in the history
  • Loading branch information
pwithnall committed May 28, 2018
1 parent 66a268a commit 9ae3f08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libostree/ostree-repo-pull.c
Original file line number Diff line number Diff line change
Expand Up @@ -2009,9 +2009,7 @@ enqueue_one_object_request (OtPullData *pull_data,
fetch_data->requested_ref = (ref != NULL) ? ostree_collection_ref_dup (ref) : NULL;
fetch_data->n_retries_remaining = pull_data->n_network_retries;

gboolean is_meta = OSTREE_OBJECT_TYPE_IS_META (objtype);

if (is_meta)
if (OSTREE_OBJECT_TYPE_IS_META (objtype))
pull_data->n_requested_metadata++;
else
pull_data->n_requested_content++;
Expand Down

0 comments on commit 9ae3f08

Please sign in to comment.