engine: resources: cron: Fix typo in error message
This commit is contained in:
@@ -410,7 +410,7 @@ func (obj *CronRes) unitCheckApply(apply bool) (checkOK bool, err error) {
|
|||||||
func (obj *CronRes) Cmp(r engine.Res) error {
|
func (obj *CronRes) Cmp(r engine.Res) error {
|
||||||
res, ok := r.(*CronRes)
|
res, ok := r.(*CronRes)
|
||||||
if !ok {
|
if !ok {
|
||||||
return fmt.Errorf("not a timer res")
|
return fmt.Errorf("res is not the same kind")
|
||||||
}
|
}
|
||||||
|
|
||||||
if obj.State != res.State {
|
if obj.State != res.State {
|
||||||
|
|||||||
Reference in New Issue
Block a user