From 47736c406059b7abba5d62897e43b648930b7f99 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sun, 12 Jan 2025 00:45:41 +0000 Subject: [PATCH] Avoid reassigning a parameter value to fix Pyright warnings (#3106) --- archinstall/lib/configuration.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/archinstall/lib/configuration.py b/archinstall/lib/configuration.py index 1552f1f5..e1aab325 100644 --- a/archinstall/lib/configuration.py +++ b/archinstall/lib/configuration.py @@ -126,11 +126,11 @@ class ConfigurationOutput: target.chmod(stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP) def save(self, dest_path: Path | None = None) -> None: - dest_path = dest_path or self._default_save_path + save_path = dest_path or self._default_save_path - if self._is_valid_path(dest_path): - self.save_user_config(dest_path) - self.save_user_creds(dest_path) + if self._is_valid_path(save_path): + self.save_user_config(save_path) + self.save_user_creds(save_path) def save_config(config: dict[str, Any]) -> None: