Remove extra err value check
kubecli.GetkubevirtClient() sets err on line 194. It is
checked on line 195. record.Newboradcaster(), broadcaster.
StartRecordingToSink() and broadcaster.NewRecorder() do not
return err. The deleted lines are checking the same error value
set in line 194.
@@ -200,10 +200,6 @@ func (app *virtHandlerApp) Run() {
// Scheme is used to create an ObjectReference from an Object (e.g. VirtualMachineInstance) during Event creation
recorder := broadcaster.NewRecorder(scheme.Scheme, k8sv1.EventSource{Component: "virt-handler", Host: app.HostOverride})
- if err != nil {
- panic(err)
- }
-
vmiSourceLabel, err := labels.Parse(fmt.Sprintf(v1.NodeNameLabel+" in (%s)", app.HostOverride))
if err != nil {
panic(err)
