Skip to content

Commit 5381c4d

Browse files
alexandrevilainalexellis
authored andcommitted
Removed duplicated error checking
Signed-off-by: Alexandre <[email protected]>
1 parent b98132e commit 5381c4d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

controller.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,6 @@ func (c *Controller) syncHandler(key string) error {
485485
err = c.updateService(tunnel, host.IP)
486486
if err != nil {
487487
log.Printf("Error updating service: %s, %s", tunnel.Spec.ServiceName, err.Error())
488-
}
489-
490-
if err != nil {
491488
return fmt.Errorf("tunnel update error %s", err)
492489
}
493490

@@ -514,8 +511,6 @@ func (c *Controller) syncHandler(key string) error {
514511
err = c.updateService(tunnel, host.IP)
515512
if err != nil {
516513
log.Printf("Error updating service: %s, %s", tunnel.Spec.ServiceName, err.Error())
517-
}
518-
if err != nil {
519514
return fmt.Errorf("tunnel update error %s", err)
520515
}
521516
}
@@ -538,8 +533,6 @@ func (c *Controller) syncHandler(key string) error {
538533
err = c.updateService(tunnel, host.IP)
539534
if err != nil {
540535
log.Printf("Error updating service: %s, %s", tunnel.Spec.ServiceName, err.Error())
541-
}
542-
if err != nil {
543536
return fmt.Errorf("tunnel update error %s", err)
544537
}
545538
}

0 commit comments

Comments
 (0)