remove redundant logic

This commit is contained in:
Michael Hudson-Doyle 2023-08-18 15:27:29 +12:00
parent 7367a373ec
commit fc06fc0488
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ def get_add_part_plan(device, *, spec, args, resize_partition=None):
# it's probably a bad idea for all cases.
gap = gaps.gap_with_size(device, size, in_extended=False)
if gap is not None and gap.size >= size and gap.is_usable:
if gap is not None:
create_part_plan.gap = gap.split(size)[0]
return create_part_plan
elif resize_partition is not None and not resize_partition.is_logical: