We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 313e372 commit ed4f2daCopy full SHA for ed4f2da
src/repo.rs
@@ -466,7 +466,8 @@ pub async fn branch_check(
466
let commit = {
467
let repo = resources.repo.lock().await;
468
let remote_branch_name = format!("origin/{branch_name}");
469
- let c = match repo.find_branch(&remote_branch_name, BranchType::Remote) {
+
470
+ match repo.find_branch(&remote_branch_name, BranchType::Remote) {
471
Ok(branch) => {
472
let commit: String = branch.into_reference().peel_to_commit()?.id().to_string();
473
Some(commit)
@@ -480,8 +481,7 @@ pub async fn branch_check(
480
481
);
482
None
483
}
- };
484
- c
+ }
485
};
486
487
{
0 commit comments