diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-19 19:51:48 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-24 20:14:41 +1100 |
commit | 94a53484a183bb32b066dc51fb90948dead634a1 (patch) | |
tree | 51e76a607b68a309c3e7573432392b125a3e2783 /pkg/gui/controllers/helpers | |
parent | 1b75ed37403ac2997cb6a5ede92d87f1a1eb96b1 (diff) |
would you believe that I'm adding even more generics
Diffstat (limited to 'pkg/gui/controllers/helpers')
-rw-r--r-- | pkg/gui/controllers/helpers/cherry_pick_helper.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/gui/controllers/helpers/cherry_pick_helper.go b/pkg/gui/controllers/helpers/cherry_pick_helper.go index c433655d0..9117f24f6 100644 --- a/pkg/gui/controllers/helpers/cherry_pick_helper.go +++ b/pkg/gui/controllers/helpers/cherry_pick_helper.go @@ -8,7 +8,6 @@ import ( "github.com/jesseduffield/lazygit/pkg/gui/context" "github.com/jesseduffield/lazygit/pkg/gui/modes/cherrypicking" "github.com/jesseduffield/lazygit/pkg/gui/types" - "github.com/samber/lo" ) type CherryPickHelper struct { @@ -109,7 +108,7 @@ func (self *CherryPickHelper) Reset() error { } func (self *CherryPickHelper) CherryPickedCommitShaSet() *set.Set[string] { - shas := lo.Map(self.getData().CherryPickedCommits, func(commit *models.Commit, _ int) string { + shas := slices.Map(self.getData().CherryPickedCommits, func(commit *models.Commit) string { return commit.Sha }) return set.NewFromSlice(shas) |