Skip to content

Commit

Permalink
Fix flake8 and mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
svartkanin committed Sep 23, 2023
1 parent 82cd2e7 commit e87bf50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archinstall/lib/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ def _add_systemd_bootloader(

def _add_grub_bootloader(
self,
boot_partition: Optional[disk.PartitionModification],
boot_partition: disk.PartitionModification,
root_partition: disk.PartitionModification,
efi_partition: Optional[disk.PartitionModification]
):
Expand All @@ -896,7 +896,7 @@ def _add_grub_bootloader(
'--debug'
]

if SysInfo.has_uefi() and efi_partition != None:
if SysInfo.has_uefi() and efi_partition is not None:
info(f"GRUB EFI partition: {efi_partition.dev_path}")

self.pacman.strap('efibootmgr') # TODO: Do we need? Yes, but remove from minimal_installation() instead?
Expand Down

0 comments on commit e87bf50

Please sign in to comment.