From 223dd426c68e8a2d01e9646e2a4880b499edcb1c Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 12 Apr 2024 19:43:21 +0100 Subject: [PATCH] chore: don't log success --- src/server/actors/repo/branch.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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") }; }