Skip to content

Commit

Permalink
Update Ruff, simplify condition flagged by it
Browse files Browse the repository at this point in the history
Signed-off-by: Aarni Koskela <[email protected]>
  • Loading branch information
akx committed Dec 21, 2023
1 parent 6ceb082 commit b981eab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install -U ruff==0.0.284
- run: pip install -U ruff==0.1.8
- name: Run ruff
run: ruff docker tests

Expand Down
6 changes: 3 additions & 3 deletions docker/models/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,9 +903,9 @@ def run(self, image, command=None, stdout=True, stderr=False,
container, exit_status, command, image, out
)

return out if stream or out is None else b''.join(
[line for line in out]
)
if stream or out is None:
return out
return b''.join(out)

def create(self, image, command=None, **kwargs):
"""
Expand Down

0 comments on commit b981eab

Please sign in to comment.