From 39bd87d59e20ba9f1841fb7c89544a81792371ba Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 16 Jul 2023 09:36:03 +1000 Subject: Remove redundant code --- pkg/gui/background.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/gui/background.go b/pkg/gui/background.go index 8709bc76e..26e3b0f81 100644 --- a/pkg/gui/background.go +++ b/pkg/gui/background.go @@ -53,9 +53,6 @@ func (self *BackgroundRoutineMgr) startBackgroundFetch(refreshInterval int) { self.gui.waitForIntro.Wait() isNew := self.gui.IsNewRepo - if !isNew { - time.After(time.Second * time.Duration(refreshInterval)) - } err := self.backgroundFetch() if err != nil && strings.Contains(err.Error(), "exit status 128") && isNew { _ = self.gui.c.Alert(self.gui.c.Tr.NoAutomaticGitFetchTitle, self.gui.c.Tr.NoAutomaticGitFetchBody) -- cgit v1.2.3