Merge pull request #443 from prometheus/fabxc-empty-slack

config: make Slack channel optional
This commit is contained in:
Fabian Reinartz 2016-08-03 10:06:10 +02:00 committed by GitHub
commit 66142a9115
1 changed files with 0 additions and 3 deletions

View File

@ -227,9 +227,6 @@ func (c *SlackConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {
if err := unmarshal((*plain)(c)); err != nil {
return err
}
if c.Channel == "" {
return fmt.Errorf("missing channel in Slack config")
}
return checkOverflow(c.XXX, "slack config")
}