mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-29 22:48:24 +02:00
Remove return value of IPatchExplorerContext.Render, RenderAndFocus, and NavigateTo
This commit is contained in:
@@ -329,7 +329,8 @@ func (self *MergeConflictsController) withRenderAndFocus(f func() error) func()
|
||||
return err
|
||||
}
|
||||
|
||||
return self.context().RenderAndFocus()
|
||||
self.context().RenderAndFocus()
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -300,7 +300,8 @@ func (self *PatchExplorerController) withRenderAndFocus(f func() error) func() e
|
||||
return err
|
||||
}
|
||||
|
||||
return self.context.RenderAndFocus(self.isFocused())
|
||||
self.context.RenderAndFocus(self.isFocused())
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -133,8 +133,8 @@ func (self *StagingController) GetOnFocusLost() func(types.OnFocusLostOpts) erro
|
||||
if opts.NewContextKey != self.otherContext.GetKey() {
|
||||
self.c.Views().Staging.Wrap = true
|
||||
self.c.Views().StagingSecondary.Wrap = true
|
||||
_ = self.c.Contexts().Staging.Render(false)
|
||||
_ = self.c.Contexts().StagingSecondary.Render(false)
|
||||
self.c.Contexts().Staging.Render(false)
|
||||
self.c.Contexts().StagingSecondary.Render(false)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user