Skip to content

Commit

Permalink
Avoid an unnecessary request during graph creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuhood committed May 24, 2018
1 parent 2d5e35d commit e930cb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/python/pants/engine/legacy/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ def _inject_specs(self, subjects):
Yields the resulting addresses.
"""
if not subjects:
return

logger.debug('Injecting specs to %s: %s', self, subjects)
with self._resolve_context():
specs = tuple(subjects)
Expand Down

0 comments on commit e930cb7

Please sign in to comment.