diff --git a/src/server/actors/repo/branch.rs b/src/server/actors/repo/branch.rs index 382eb66..16801df 100644 --- a/src/server/actors/repo/branch.rs +++ b/src/server/actors/repo/branch.rs @@ -184,18 +184,13 @@ pub async fn advance_main( git: Git, ) { info!("Advancing main to next"); - match git.reset( + if let Err(err) = git.reset( &repo_config.branches().main(), next.into(), ResetForce::None, &repo_details, ) { - Ok(_) => { - info!("Success"); - } - Err(err) => { - warn!(?err, "Failed") - } + warn!(?err, "Failed") }; }