Skip to content

Commit 4c26bf7

Browse files
committed
Verbessere die Lesbarkeit des Codes im Selbstaktualisierungsprozess durch Vereinfachung der Funktionsaufrufe zur Ableitung des Installationspfads.
1 parent ff4a99a commit 4c26bf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎hypnoscript-cli/src/main.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ fn handle_self_update(
464464
// If both fail, install_prefix will be None, and the installer will use its default
465465
// prefix (/usr/local/bin), which is the correct fallback behavior.
466466
let install_prefix =
467-
install_prefix_from_metadata(&metadata).or_else(|| derive_prefix_from_binary());
467+
install_prefix_from_metadata(&metadata).or_else(derive_prefix_from_binary);
468468

469469
let installer = match find_shared_installer(metadata.as_ref()) {
470470
Some(path) => InstallerScript::shared(path),

0 commit comments

Comments
 (0)