mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
fix(project): return nil when no files found for pwsh
This commit is contained in:
parent
d3272faedd
commit
566a9d1471
|
@ -245,6 +245,10 @@ func (n *Project) getPowerShellModuleData(_ ProjectItem) *ProjectData {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(content) == 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
data := &ProjectData{}
|
data := &ProjectData{}
|
||||||
lines := strings.Split(content, "\n")
|
lines := strings.Split(content, "\n")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue