chore: simplify filter condition in list_remote_branches function

This commit is contained in:
Kiril Videlov 2023-11-11 17:40:17 +01:00 committed by Kiril Videlov
parent c00e645881
commit 071889592c

View File

@ -69,7 +69,7 @@ pub fn list_remote_branches(
.context("failed to convert branches")?
.into_iter()
.flatten()
.filter(|branch| &branch.name.branch() != &default_target.branch.branch())
.filter(|branch| branch.name.branch() != default_target.branch.branch())
.collect::<Vec<_>>();
Ok(remote_branches)