Formatting

This commit is contained in:
Roey Darwish Dror
2020-02-11 07:56:02 +02:00
parent b0b3d577ab
commit 22a27ed2c5
2 changed files with 2 additions and 10 deletions

View File

@@ -96,12 +96,7 @@ fn run() -> Result<()> {
if let Some(topgrades) = config.remote_topgrades() {
if config.should_run(Step::Remotes) {
for remote_topgrade in topgrades {
runner.execute(remote_topgrade, || {
generic::run_remote_topgrade(
&ctx,
remote_topgrade,
)
})?;
runner.execute(remote_topgrade, || generic::run_remote_topgrade(&ctx, remote_topgrade))?;
}
}
}

View File

@@ -197,10 +197,7 @@ pub fn run_composer_update(base_dirs: &BaseDirs, run_type: RunType) -> Result<()
Ok(())
}
pub fn run_remote_topgrade(
ctx: &ExecutionContext,
hostname: &str,
) -> Result<()> {
pub fn run_remote_topgrade(ctx: &ExecutionContext, hostname: &str) -> Result<()> {
let ssh = utils::require("ssh")?;
if ctx.config().run_in_tmux() && !ctx.run_type().dry() {