fix: set .Mismatch flag for node segment

This commit is contained in:
mansur 2022-02-28 15:55:33 +03:00 committed by Jan De Dobbeleer
parent cc20e4dd4c
commit be60b64585

View file

@ -45,7 +45,12 @@ func (n *Node) Init(props properties.Properties, env environment.Environment) {
}
func (n *Node) Enabled() bool {
return n.language.Enabled()
if n.language.Enabled() {
n.Mismatch = !n.matchesVersionFile()
return true
}
return false
}
func (n *Node) loadContext() {