From c1564807f858ebf43288a4ee27af9cf704a2f6f6 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 31 Aug 2024 22:32:09 +0100 Subject: [PATCH] refactor: merge identical match branches --- crates/cli/src/tui/components/repo/mod.rs | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/crates/cli/src/tui/components/repo/mod.rs b/crates/cli/src/tui/components/repo/mod.rs index f45b1787..804e2637 100644 --- a/crates/cli/src/tui/components/repo/mod.rs +++ b/crates/cli/src/tui/components/repo/mod.rs @@ -52,24 +52,13 @@ impl<'a> RepoWidget<'a> { alert, branches, log, - } => InnerRepoWidget { - repo_alias, - message, - alert: alert.as_ref().map(String::as_str), - branches: Some(branches), - log: Some(log), - }, - - RepoState::Ready { + } + | RepoState::Ready { repo_alias, message, alert, branches, log, - // view_state, - // main, - // next, - // dev, .. } => InnerRepoWidget { repo_alias, @@ -77,10 +66,6 @@ impl<'a> RepoWidget<'a> { alert: alert.as_ref().map(String::as_str), branches: Some(branches), log: Some(log), - // view_state, - // main, - // next, - // dev, }, } }