Skip to content

Commit

Permalink
Remove unnecessary calls from search_repository_content result
Browse files Browse the repository at this point in the history
  • Loading branch information
negillett committed Nov 27, 2019
1 parent 5c8a4da commit cab37e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubtools/pulplib/_impl/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def search_repository_content(self, repository_id, type_ids, criteria=None):
criteria=criteria,
type_ids=validate_type_ids(type_ids),
)
return [unit for unit in search_f.result().as_iter()]
return [unit for unit in search_f]

def search_distributor(self, criteria=None):
"""Search the distributors matching the given criteria.
Expand Down

0 comments on commit cab37e2

Please sign in to comment.