Remove superfluous underscore variable assignment (#4679)

This commit is contained in:
codefiles 2026-07-31 00:43:37 -04:00 committed by GitHub
parent 1d66204940
commit c0affc895c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 6 deletions

View File

@ -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()