fix(node): remove leading space for PackageManagerIcon in node segment

This commit is contained in:
Alex Villarreal 2023-05-17 10:38:08 -05:00 committed by Jan De Dobbeleer
parent 2606031c76
commit 192309a283

View file

@ -55,11 +55,11 @@ func (n *Node) loadContext() {
return return
} }
if n.language.env.HasFiles("yarn.lock") { if n.language.env.HasFiles("yarn.lock") {
n.PackageManagerIcon = n.language.props.GetString(YarnIcon, " \uF61A") n.PackageManagerIcon = n.language.props.GetString(YarnIcon, "\uF61A")
return return
} }
if n.language.env.HasFiles("package-lock.json") || n.language.env.HasFiles("package.json") { if n.language.env.HasFiles("package-lock.json") || n.language.env.HasFiles("package.json") {
n.PackageManagerIcon = n.language.props.GetString(NPMIcon, " \uE71E") n.PackageManagerIcon = n.language.props.GetString(NPMIcon, "\uE71E")
} }
} }