Skip to content

Commit

Permalink
old black vs new black
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Nov 4, 2024
1 parent 7ab4a49 commit 9dca122
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packethardware/component/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ def __init__(self, lsblk):
"rota": (
self.lsblk["rota"]
if isinstance(self.lsblk["rota"], str)
else "1"
if self.lsblk["rota"]
else "0"
else "1" if self.lsblk["rota"] else "0"
),
"tool": self.lsblk["tool"],
}
Expand All @@ -43,9 +41,7 @@ def __init__(self, lsblk):
c["rota"] = (
c["rota"]
if isinstance(c["rota"], str)
else "1"
if c["rota"]
else "0"
else "1" if c["rota"] else "0"
)
c["size"] = str(c["size"])

Expand Down

0 comments on commit 9dca122

Please sign in to comment.