fix(rule): fixes rule reading bug

This commit is contained in:
bergquist
2016-09-26 10:01:33 +02:00
parent 8cd9225eb6
commit 887e236bce

View File

@@ -184,5 +184,6 @@ func validateToValue(to string) error {
}
}
return fmt.Errorf("cannot parse to value %s", to)
_, err := time.ParseDuration(to)
return err
}