Skip to content

Commit 39bd87d

Browse files
committed
Remove redundant code
1 parent fb61f7c commit 39bd87d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/gui/background.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ func (self *BackgroundRoutineMgr) startBackgroundFetch(refreshInterval int) {
5353
self.gui.waitForIntro.Wait()
5454

5555
isNew := self.gui.IsNewRepo
56-
if !isNew {
57-
time.After(time.Second * time.Duration(refreshInterval))
58-
}
5956
err := self.backgroundFetch()
6057
if err != nil && strings.Contains(err.Error(), "exit status 128") && isNew {
6158
_ = self.gui.c.Alert(self.gui.c.Tr.NoAutomaticGitFetchTitle, self.gui.c.Tr.NoAutomaticGitFetchBody)

0 commit comments

Comments
 (0)