summaryrefslogtreecommitdiffstats
path: root/pkg/gui/filetree/inode.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/filetree/inode.go')
-rw-r--r--pkg/gui/filetree/inode.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/pkg/gui/filetree/inode.go b/pkg/gui/filetree/inode.go
index 4357f3a8a..cdbc82dcd 100644
--- a/pkg/gui/filetree/inode.go
+++ b/pkg/gui/filetree/inode.go
@@ -215,9 +215,6 @@ func getLeaves(node INode) []INode {
func renderAux(s INode, collapsedPaths CollapsedPaths, prefix string, depth int, renderLine func(INode, int) string) []string {
isRoot := depth == -1
- if s == nil {
- return []string{}
- }
renderLineWithPrefix := func() string {
return prefix + renderLine(s, depth)