mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-28 18:38:40 +00:00
code review changes: remove extra code
This commit is contained in:
parent
653a733a4b
commit
3ef72addd8
1 changed files with 1 additions and 5 deletions
|
@ -45,11 +45,7 @@ func NewViolationBuilder(
|
|||
}
|
||||
|
||||
func (b *builder) Create(info utils.ViolationInfo) error {
|
||||
err := b.ProcessViolation(info)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return b.ProcessViolation(info)
|
||||
}
|
||||
|
||||
func (b *builder) SetController(controller controllerinterfaces.PolicyGetter) {
|
||||
|
|
Loading…
Add table
Reference in a new issue