From c0affc895c6c58c8861b39d20101d8d26b9e3e98 Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Fri, 31 Jul 2026 00:43:37 -0400 Subject: [PATCH] Remove superfluous underscore variable assignment (#4679) --- archinstall/lib/network/network_handler.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/archinstall/lib/network/network_handler.py b/archinstall/lib/network/network_handler.py index 60343a12..0df7c787 100644 --- a/archinstall/lib/network/network_handler.py +++ b/archinstall/lib/network/network_handler.py @@ -12,9 +12,8 @@ def install_network_config( ) -> None: match network_config.type: case NicType.ISO: - _ = installation.copy_iso_network_config( - enable_services=True, # Sources the ISO network configuration to the install medium. - ) + # Sources the ISO network configuration to the install medium. + installation.copy_iso_network_config(enable_services=True) case NicType.NM | NicType.NM_IWD: packages = ['networkmanager'] @@ -53,7 +52,7 @@ def _configure_nm_iwd(installation: Installer) -> None: nm_conf_dir.mkdir(parents=True, exist_ok=True) iwd_backend_conf = nm_conf_dir / 'wifi_backend.conf' - _ = iwd_backend_conf.write_text('[device]\nwifi.backend=iwd\n') + iwd_backend_conf.write_text('[device]\nwifi.backend=iwd\n') def _configure_iwd_standalone(installation: Installer) -> None: @@ -69,7 +68,7 @@ def _configure_iwd_standalone(installation: Installer) -> None: [Network] NameResolvingService=systemd """) - _ = main_conf.write_text(main_conf_content) + main_conf.write_text(main_conf_content) networkd_dir = installation.target / 'etc/systemd/network' networkd_dir.mkdir(parents=True, exist_ok=True) @@ -82,6 +81,6 @@ def _configure_iwd_standalone(installation: Installer) -> None: [Network] DHCP=yes """) - _ = wired_conf.write_text(wired_conf_content) + wired_conf.write_text(wired_conf_content) installation.systemd_resolved_stub_mode()