Skip to content

Commit

Permalink
Reduce redundant code
Browse files Browse the repository at this point in the history
Signed-off-by: TTz0601 <[email protected]>
  • Loading branch information
zuohanxu committed Aug 9, 2023
1 parent 35dc287 commit ff5b4d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions avocado/utils/softwareraid.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ def __init__(self, name, level, disks, metadata, spare_disks=None):
self.metadata = metadata
self.disks = disks
self.remadd = ""
if not spare_disks:
self.spare_disks = []
else:
self.spare_disks = spare_disks
self.spare_disks = spare_disks or []

def _run_command(self, cmd, log_details=True, check_recovery=False):
if process.system(cmd, ignore_status=True, shell=True) != 0:
Expand Down

0 comments on commit ff5b4d6

Please sign in to comment.