diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-02 10:21:32 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-04 09:07:15 +1100 |
commit | 194ff1630c11303e3de1c87f61103b3aadcd175d (patch) | |
tree | ab57dbd60347668e12c72d6e169063e770c3beac /pkg/gui/remotes_panel.go | |
parent | 2cb8aff940b79f20a09c0ed2bde13ec3b34a13cb (diff) |
do dependency injection up front and in one place
Diffstat (limited to 'pkg/gui/remotes_panel.go')
-rw-r--r-- | pkg/gui/remotes_panel.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/gui/remotes_panel.go b/pkg/gui/remotes_panel.go index 999ec1a10..0a654f365 100644 --- a/pkg/gui/remotes_panel.go +++ b/pkg/gui/remotes_panel.go @@ -4,7 +4,6 @@ import ( "fmt" "strings" - "github.com/jesseduffield/lazygit/pkg/commands/loaders" "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/gui/style" "github.com/jesseduffield/lazygit/pkg/utils" @@ -41,7 +40,7 @@ func (gui *Gui) remotesRenderToMain() error { func (gui *Gui) refreshRemotes() error { prevSelectedRemote := gui.getSelectedRemote() - remotes, err := loaders.NewRemoteLoader(gui.Common, gui.GitCommand.Cmd, gui.GitCommand.Repo.Remotes).GetRemotes() + remotes, err := gui.GitCommand.Loaders.Remotes.GetRemotes() if err != nil { return gui.surfaceError(err) } |