config: make Slack channel optional
This commit is contained in:
parent
a9f7c9f318
commit
f8de58b6b6
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue