Skip to content

Commit

Permalink
remove redundant logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhudson committed Aug 18, 2023
1 parent 7367a37 commit fc06fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subiquity/common/filesystem/boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fc06fc0

Please sign in to comment.