fix formatting

pull/2434/head
Tal Zion 5 months ago
parent 90df48fd12
commit e7b7a8d50e

@ -632,8 +632,7 @@ impl Update {
let install_mode = self.config.install_mode(); let install_mode = self.config.install_mode();
let current_exe_args = self.current_exe_args(); let current_exe_args = self.current_exe_args();
let current_args = let current_args = current_exe_args
current_exe_args
.split_first() .split_first()
.map(|(_, args_without_exe)| args_without_exe) .map(|(_, args_without_exe)| args_without_exe)
.unwrap_or(&[]); .unwrap_or(&[]);
@ -651,7 +650,9 @@ impl Update {
Some(once(OsStr::new("/ARGS")).chain(current_args.iter().map(|arg| *arg))) Some(once(OsStr::new("/ARGS")).chain(current_args.iter().map(|arg| *arg)))
} else { } else {
None None
}.into_iter().flatten() }
.into_iter()
.flatten(),
) )
.chain(self.installer_args()) .chain(self.installer_args())
.collect(), .collect(),
@ -663,8 +664,7 @@ impl Update {
.collect::<Vec<_>>() .collect::<Vec<_>>()
.join(" "); .join(" ");
msi_args = Some(OsString::from(format!("LAUNCHAPPARGS=\"{escaped_args}\""))); msi_args = Some(OsString::from(format!("LAUNCHAPPARGS=\"{escaped_args}\"")));
} } else {
else {
msi_args = None; msi_args = None;
} }

Loading…
Cancel
Save