From e7af3bf55df8493e6c327353c88e1acee876cad0 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 21 Mar 2021 15:25:54 +1100 Subject: [PATCH] refactor --- pkg/gui/filetree/file_change_manager.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/gui/filetree/file_change_manager.go b/pkg/gui/filetree/file_change_manager.go index 925398827..fd2134b18 100644 --- a/pkg/gui/filetree/file_change_manager.go +++ b/pkg/gui/filetree/file_change_manager.go @@ -12,6 +12,11 @@ import ( const EXPANDED_ARROW = "▼" const COLLAPSED_ARROW = "►" +const INNER_ITEM = "├─ " +const LAST_ITEM = "└─ " +const NESTED = "│ " +const NOTHING = " " + type FileChangeManager struct { Files []*models.File Tree *models.FileChangeNode @@ -73,11 +78,6 @@ func (m *FileChangeManager) Render(diffName string, submoduleConfigs []*models.S return m.renderAux(m.Tree, "", -1, diffName, submoduleConfigs) } -const INNER_ITEM = "├─ " -const LAST_ITEM = "└─ " -const NESTED = "│ " -const NOTHING = " " - func (m *FileChangeManager) IsCollapsed(s *models.FileChangeNode) bool { return m.CollapsedPaths[s.GetPath()] }