diff --git a/src/segments/project.go b/src/segments/project.go index ade64f50..3afdd614 100644 --- a/src/segments/project.go +++ b/src/segments/project.go @@ -245,6 +245,10 @@ func (n *Project) getPowerShellModuleData(_ ProjectItem) *ProjectData { } } + if len(content) == 0 { + return nil + } + data := &ProjectData{} lines := strings.Split(content, "\n")