1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-05 15:15:49 +02:00

err was assigned but never checked

This commit is contained in:
Christian Muehlhaeuser 2019-07-19 03:51:48 +02:00 committed by Jesse Duffield
parent 69ac0036e6
commit d953712377

View File

@ -70,7 +70,7 @@ func (b *BranchListBuilder) obtainSafeBranches() []*commands.Branch {
if err != nil {
panic(err)
}
err = bIter.ForEach(func(b *plumbing.Reference) error {
bIter.ForEach(func(b *plumbing.Reference) error {
name := b.Name().Short()
branches = append(branches, &commands.Branch{Name: name})
return nil