summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-30 16:42:20 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commit182c999ee0ccd845e49d3f5af7845daf683dcfaa (patch)
treefe05870749e30dea93589d0ce3aaff9200625f24 /pkg
parentb5515da00b916bcf79f680b360d5c00e08932338 (diff)
fix linting
Diffstat (limited to 'pkg')
-rw-r--r--pkg/gui/gui.go4
-rw-r--r--pkg/gui/presentation/files_test.go2
2 files changed, 1 insertions, 5 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index b80ef9656..93b9a2862 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -270,10 +270,6 @@ type MergingPanelState struct {
UserVerticalScrolling bool
}
-type filePanelState struct {
- listPanelState
-}
-
// TODO: consider splitting this out into the window and the branches view
type branchPanelState struct {
listPanelState
diff --git a/pkg/gui/presentation/files_test.go b/pkg/gui/presentation/files_test.go
index 8e9baf4e5..441ec7b69 100644
--- a/pkg/gui/presentation/files_test.go
+++ b/pkg/gui/presentation/files_test.go
@@ -127,7 +127,7 @@ M file1
for _, s := range scenarios {
s := s
t.Run(s.name, func(t *testing.T) {
- viewModel := filetree.NewCommitFileTreeViewModel(s.files, utils.NewDummyLog(), true)
+ viewModel := filetree.NewCommitFileTreeViewModel(func() []*models.CommitFile { return s.files }, utils.NewDummyLog(), true)
for _, path := range s.collapsedPaths {
viewModel.ToggleCollapsed(path)
}