1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-12-01 22:52:01 +02:00

fix bug caused by interface

This commit is contained in:
Jesse Duffield
2021-04-01 09:25:11 +11:00
parent 0b7bda291c
commit 949c7726d1
3 changed files with 10 additions and 3 deletions

View File

@@ -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)