Skip to content

Commit 3577808

Browse files
committed
Remove double Refresh
fetchAux already calls Refresh (and with a more targeted scope too), no need to call it again here.
1 parent e4362ee commit 3577808

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/gui/controllers/files_controller.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,10 +1189,7 @@ func (self *FilesController) onClickMain(opts gocui.ViewMouseBindingOpts) error
11891189

11901190
func (self *FilesController) fetch() error {
11911191
return self.c.WithWaitingStatus(self.c.Tr.FetchingStatus, func(task gocui.Task) error {
1192-
if err := self.fetchAux(task); err != nil {
1193-
return err
1194-
}
1195-
return self.c.Refresh(types.RefreshOptions{Mode: types.ASYNC})
1192+
return self.fetchAux(task)
11961193
})
11971194
}
11981195

0 commit comments

Comments
 (0)