Skip to content

Commit 0cde374

Browse files
committed
Update Ruff, simplify condition flagged by it
1 parent 6ceb082 commit 0cde374

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/setup-python@v4
1515
with:
1616
python-version: '3.x'
17-
- run: pip install -U ruff==0.0.284
17+
- run: pip install -U ruff==0.1.8
1818
- name: Run ruff
1919
run: ruff docker tests
2020

docker/models/containers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,9 +903,9 @@ def run(self, image, command=None, stdout=True, stderr=False,
903903
container, exit_status, command, image, out
904904
)
905905

906-
return out if stream or out is None else b''.join(
907-
[line for line in out]
908-
)
906+
if stream or out is None:
907+
return out
908+
return b''.join(out)
909909

910910
def create(self, image, command=None, **kwargs):
911911
"""

0 commit comments

Comments
 (0)