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

fix golangci errors

This commit is contained in:
Jesse Duffield
2019-02-16 21:30:29 +11:00
parent 88ba6efdd5
commit cb372d469f
3 changed files with 13 additions and 12 deletions

View File

@ -245,7 +245,9 @@ func (gui *Gui) onFocusLost(v *gocui.View) error {
return nil
}
if v.Name() == "branches" {
gui.renderListPanel(gui.getBranchesView(), gui.State.Branches)
if err := gui.renderListPanel(gui.getBranchesView(), gui.State.Branches); err != nil {
return err
}
}
gui.Log.Info(v.Name() + " focus lost")
return nil