Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs committed Oct 9, 2024
1 parent 23af8f1 commit 483cfd5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions service/lib/y2storage/agama_proposal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ def drives_with_empty_partition_table(devicegraph)
#
# @return [Array<String>] names of partitionable devices
def disks_for_clean
return drives_names if config.boot_device.nil? || drives_names.include?(config.boot_device)

drives_names + [config.boot_device]
(drives_names + [config.boot_device]).compact.uniq
end

# Creates the planned devices on a given devicegraph
Expand Down

0 comments on commit 483cfd5

Please sign in to comment.