PR comments config

This commit is contained in:
Till Faelligen 2022-05-04 13:47:08 +02:00
parent e0cdf64c33
commit dc8cea6d57

View file

@ -288,7 +288,10 @@ func (c *UserConsentOptions) Defaults() {
}
func (c *UserConsentOptions) Verify(configErrors *ConfigErrors, isMonolith bool) {
if c.Enabled {
if !c.Enabled {
return
}
checkNotEmpty(configErrors, "template_dir", c.TemplateDir)
checkNotEmpty(configErrors, "version", c.Version)
checkNotEmpty(configErrors, "policy_name", c.PolicyName)
@ -320,7 +323,6 @@ func (c *UserConsentOptions) Verify(configErrors *ConfigErrors, isMonolith bool)
configErrors.Add(fmt.Sprintf("unable to load defined '%s' policy template", c.Version))
}
}
}
// PresenceOptions defines possible configurations for presence events.
type PresenceOptions struct {