Fix indent

This commit is contained in:
Johannes 'fish' Ziemke 2016-01-28 13:44:21 +01:00
parent b276807c31
commit e5925db736
1 changed files with 3 additions and 3 deletions

View File

@ -210,9 +210,9 @@ func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
// The root route must not have any matchers as it is the fallback node
// for all alerts.
if c.Route == nil {
return fmt.Errorf("No routes provided")
}
if c.Route == nil {
return fmt.Errorf("No routes provided")
}
if len(c.Route.Match) > 0 || len(c.Route.MatchRE) > 0 {
return fmt.Errorf("Root route must not have any matchers")
}