Skip to content

Commit 9456857

Browse files
Aradhya-Tripathimergify[bot]
authored andcommitted
chore(lint): Remove assignment
(cherry picked from commit d1d93a3)
1 parent f77556a commit 9456857

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

agent/server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,9 @@ def unused_image_size(self) -> list[float]:
155155
images_present = [image.split() for image in images_present]
156156
images_in_use = self.execute("docker container ls --format {{.Image}}")["output"].split("\n")
157157

158-
reclaimable_size = [
158+
return [
159159
to_bytes(size) for image_name, size in images_present if image_name not in images_in_use
160160
]
161-
return reclaimable_size
162161

163162
def get_reclaimable_size(self) -> dict[str, dict[str, float] | float]:
164163
"""Checks archived and unused docker artefacts size"""

0 commit comments

Comments
 (0)