1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

chore: refactor rename stash

This commit is contained in:
Ryooooooga
2022-10-16 09:11:54 +09:00
parent e78e829e3a
commit 3103398e31
3 changed files with 33 additions and 23 deletions

View File

@ -128,7 +128,7 @@ func (self *StashController) handleStashDrop(stashEntry *models.StashEntry) erro
Prompt: self.c.Tr.SureDropStashEntry,
HandleConfirm: func() error {
self.c.LogAction(self.c.Tr.Actions.Stash)
_, err := self.git.Stash.Drop(stashEntry.Index)
err := self.git.Stash.Drop(stashEntry.Index)
_ = self.c.Refresh(types.RefreshOptions{Scope: []types.RefreshableView{types.STASH}})
if err != nil {
return self.c.Error(err)