Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Jul 4, 2023
1 parent 92c834a commit cf9791e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/services/vmoperator/vmopmachine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,7 @@ var _ = Describe("VirtualMachine tests", func() {
requeue, err = vmService.ReconcileNormal(ctx)
// There is no GC behavior in the unit test environment, so simulate it
vmService.deleteFunc = func(vm *vmoprv1.VirtualMachine) error {
if err := ctx.Client.Delete(ctx, vm); err != nil {
return err
}
return nil
return ctx.Client.Delete(ctx, vm)
}
})

Expand Down

0 comments on commit cf9791e

Please sign in to comment.