1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-25 22:32:13 +02:00

Get rid of error return value of PostRefreshUpdate and a few related ones

I missed these in https://github.com/jesseduffield/lazygit/pull/3890.
This commit is contained in:
Stefan Haller
2024-10-11 10:53:11 +02:00
parent 53f8249ee1
commit 59a937ee7a
18 changed files with 69 additions and 93 deletions

View File

@@ -126,7 +126,7 @@ func (gui *Gui) render() {
// postRefreshUpdate is to be called on a context after the state that it depends on has been refreshed
// if the context's view is set to another context we do nothing.
// if the context's view is the current view we trigger a focus; re-selecting the current item.
func (gui *Gui) postRefreshUpdate(c types.Context) error {
func (gui *Gui) postRefreshUpdate(c types.Context) {
t := time.Now()
defer func() {
gui.Log.Infof("postRefreshUpdate for %s took %s", c.GetKey(), time.Since(t))
@@ -137,6 +137,4 @@ func (gui *Gui) postRefreshUpdate(c types.Context) error {
if gui.currentViewName() == c.GetViewName() {
c.HandleFocus(types.OnFocusOpts{})
}
return nil
}