summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-19 03:51:48 +0200
committerJesse Duffield <jessedduffield@gmail.com>2019-07-27 10:55:01 +1000
commitd953712377a9928ecbc9c2e351959c9f3a4a1191 (patch)
treefb6835fa6b4ca76b4c3141ad634abcfbd1b7e2b2
parent69ac0036e67ac22fdf3baaa083a9020d001180d6 (diff)
err was assigned but never checked
-rw-r--r--pkg/git/branch_list_builder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/git/branch_list_builder.go b/pkg/git/branch_list_builder.go
index b96a8ec67..09c95ba97 100644
--- a/pkg/git/branch_list_builder.go
+++ b/pkg/git/branch_list_builder.go
@@ -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