summaryrefslogtreecommitdiffstats
path: root/pkg/gui/tags_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-02 10:21:32 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-04 09:07:15 +1100
commit194ff1630c11303e3de1c87f61103b3aadcd175d (patch)
treeab57dbd60347668e12c72d6e169063e770c3beac /pkg/gui/tags_panel.go
parent2cb8aff940b79f20a09c0ed2bde13ec3b34a13cb (diff)
do dependency injection up front and in one place
Diffstat (limited to 'pkg/gui/tags_panel.go')
-rw-r--r--pkg/gui/tags_panel.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/gui/tags_panel.go b/pkg/gui/tags_panel.go
index 3fc028e6d..9516741e0 100644
--- a/pkg/gui/tags_panel.go
+++ b/pkg/gui/tags_panel.go
@@ -1,7 +1,6 @@
package gui
import (
- "github.com/jesseduffield/lazygit/pkg/commands/loaders"
"github.com/jesseduffield/lazygit/pkg/commands/models"
"github.com/jesseduffield/lazygit/pkg/utils"
)
@@ -40,7 +39,7 @@ func (gui *Gui) tagsRenderToMain() error {
// this is a controller: it can't access tags directly. Or can it? It should be able to get but not set. But that's exactly what I'm doing here, setting it. but through a mutator which encapsulates the event.
func (gui *Gui) refreshTags() error {
- tags, err := loaders.NewTagLoader(gui.Common, gui.GitCommand.Cmd).GetTags()
+ tags, err := gui.GitCommand.Loaders.Tags.GetTags()
if err != nil {
return gui.surfaceError(err)
}