refactor: merge identical match branches

This commit is contained in:
Paul Campbell 2024-08-31 22:32:09 +01:00
parent b24005c3fe
commit c1564807f8

View file

@ -52,24 +52,13 @@ impl<'a> RepoWidget<'a> {
alert, alert,
branches, branches,
log, log,
} => InnerRepoWidget { }
repo_alias, | RepoState::Ready {
message,
alert: alert.as_ref().map(String::as_str),
branches: Some(branches),
log: Some(log),
},
RepoState::Ready {
repo_alias, repo_alias,
message, message,
alert, alert,
branches, branches,
log, log,
// view_state,
// main,
// next,
// dev,
.. ..
} => InnerRepoWidget { } => InnerRepoWidget {
repo_alias, repo_alias,
@ -77,10 +66,6 @@ impl<'a> RepoWidget<'a> {
alert: alert.as_ref().map(String::as_str), alert: alert.as_ref().map(String::as_str),
branches: Some(branches), branches: Some(branches),
log: Some(log), log: Some(log),
// view_state,
// main,
// next,
// dev,
}, },
} }
} }