mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-02 07:53:55 +03:00
chore: simplify filter condition in list_remote_branches function
This commit is contained in:
parent
c00e645881
commit
071889592c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user