From 3b2353b5aecf0b711e419cabc2a0e0a6682110cf Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 12 Mar 2019 18:57:05 +1100 Subject: remove redundant call to refreshCommitFilesView We already call this function inside the refreshCommitsView function. We call it there because it's logical that A) one occurs whenever the other does and B) the commit files only get refreshed after we've updated the commits themselves --- pkg/gui/view_helpers.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 372c5d43e..a258ca7e8 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -23,10 +23,6 @@ func (gui *Gui) refreshSidePanels(g *gocui.Gui) error { return err } - if err := gui.refreshCommitFilesView(); err != nil { - return err - } - return gui.refreshStashEntries(g) } -- cgit v1.2.3