mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Remove return value of IContextMgr.Push/Pop et. al.
This commit is contained in:
@ -393,9 +393,7 @@ func (gui *Gui) onNewRepo(startArgs appTypes.StartArgs, contextKey types.Context
|
||||
}
|
||||
}
|
||||
|
||||
if err := gui.c.Context().Push(contextToPush); err != nil {
|
||||
return err
|
||||
}
|
||||
gui.c.Context().Push(contextToPush)
|
||||
|
||||
return nil
|
||||
}
|
||||
@ -677,7 +675,7 @@ func NewGui(
|
||||
return gui.helpers.Confirmation.CreatePopupPanel(ctx, opts)
|
||||
},
|
||||
func() error { return gui.c.Refresh(types.RefreshOptions{Mode: types.ASYNC}) },
|
||||
func() error { return gui.State.ContextMgr.Pop() },
|
||||
func() { gui.State.ContextMgr.Pop() },
|
||||
func() types.Context { return gui.State.ContextMgr.Current() },
|
||||
gui.createMenu,
|
||||
func(message string, f func(gocui.Task) error) { gui.helpers.AppStatus.WithWaitingStatus(message, f) },
|
||||
|
Reference in New Issue
Block a user