mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-27 12:32:37 +02:00
Remove return value from ResizeCurrentPopupPanel
It always returned nil, so there's no point in returning an error.
This commit is contained in:
parent
bb01648521
commit
1d502d3245
@ -315,7 +315,7 @@ func (self *ConfirmationHelper) getSelectedSuggestionValue() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *ConfirmationHelper) ResizeCurrentPopupPanel() error {
|
func (self *ConfirmationHelper) ResizeCurrentPopupPanel() {
|
||||||
c := self.c.CurrentContext()
|
c := self.c.CurrentContext()
|
||||||
|
|
||||||
switch c {
|
switch c {
|
||||||
@ -326,8 +326,6 @@ func (self *ConfirmationHelper) ResizeCurrentPopupPanel() error {
|
|||||||
case self.c.Contexts().CommitMessage, self.c.Contexts().CommitDescription:
|
case self.c.Contexts().CommitMessage, self.c.Contexts().CommitDescription:
|
||||||
self.ResizeCommitMessagePanels()
|
self.ResizeCommitMessagePanels()
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *ConfirmationHelper) resizeMenu() {
|
func (self *ConfirmationHelper) resizeMenu() {
|
||||||
|
@ -173,9 +173,7 @@ func (gui *Gui) layout(g *gocui.Gui) error {
|
|||||||
// if you run `lazygit --logs`
|
// if you run `lazygit --logs`
|
||||||
// this will let you see these branches as prettified json
|
// this will let you see these branches as prettified json
|
||||||
// gui.c.Log.Info(utils.AsJson(gui.State.Model.Branches[0:4]))
|
// gui.c.Log.Info(utils.AsJson(gui.State.Model.Branches[0:4]))
|
||||||
if err := gui.helpers.Confirmation.ResizeCurrentPopupPanel(); err != nil {
|
gui.helpers.Confirmation.ResizeCurrentPopupPanel()
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
gui.renderContextOptionsMap()
|
gui.renderContextOptionsMap()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user