diff --git a/api/utils/runtime/validate.go b/api/utils/runtime/validate.go index 51d759673..1b8e34836 100644 --- a/api/utils/runtime/validate.go +++ b/api/utils/runtime/validate.go @@ -14,8 +14,8 @@ func Validate(o interface{}) error { return errors.New("type missing") } } - if v, ok := o.(Validater); ok { + if v, ok := o.(Validater); ok { // codespell:ignore return v.Validate() - } // codespell:ignore + } return nil }