Skip to content

Commit

Permalink
cleanup: Remove unreachable code (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
phlax committed Dec 4, 2020
1 parent 9d41e0d commit f47ebdb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions aiodocker/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,6 @@ def build( # noqa: F811
if fileobj and not encoding:
raise ValueError("You need to specify an encoding")

if remote is None and fileobj is None:
raise ValueError("Either remote or fileobj needs to be provided.")

data = None
if fileobj:
data = self._stream(fileobj)
Expand Down

0 comments on commit f47ebdb

Please sign in to comment.