Start config validity flag with invalid

This commit is contained in:
Daniel 2022-02-25 15:57:01 +01:00
parent 874214ea59
commit 7d144dae89

View file

@ -10,9 +10,11 @@ type ValidityFlag struct {
}
// NewValidityFlag returns a flag that signifies if the configuration has been changed.
// It always starts out as invalid. Refresh to start with the current value.
func NewValidityFlag() *ValidityFlag {
vf := &ValidityFlag{}
vf.Refresh()
vf := &ValidityFlag{
flag: abool.New(),
}
return vf
}