Skip to content

Commit b7aac18

Browse files
committed
Remove useless else condition
1 parent 97f7021 commit b7aac18

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

archinstall/lib/installer.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -779,18 +779,12 @@ def configure_nm_iwd(self) -> None:
779779

780780
# Disable standalone iwd service (NetworkManager will manage iwd)
781781
# and enable NetworkManager
782-
if self._helper_flags.get('base', False) is False:
783-
# Base not installed yet, use post-install hooks
784-
def post_install_configure_nm_iwd(*args: str, **kwargs: str) -> None:
785-
self.disable_service('iwd.service')
786-
self.enable_service('NetworkManager.service')
787-
788-
self.post_base_install.append(post_install_configure_nm_iwd)
789-
else:
790-
# Base already installed, configure now
782+
def post_install_configure_nm_iwd(*args: str, **kwargs: str) -> None:
791783
self.disable_service('iwd.service')
792784
self.enable_service('NetworkManager.service')
793785

786+
self.post_base_install.append(post_install_configure_nm_iwd)
787+
794788
def mkinitcpio(self, flags: list[str]) -> bool:
795789
for plugin in plugins.values():
796790
if hasattr(plugin, 'on_mkinitcpio'):

0 commit comments

Comments
 (0)