Skip to content

Commit

Permalink
Removed duplicated error checking
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre <[email protected]>
  • Loading branch information
alexandrevilain authored and alexellis committed Nov 1, 2019
1 parent b98132e commit 5381c4d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,6 @@ func (c *Controller) syncHandler(key string) error {
err = c.updateService(tunnel, host.IP)
if err != nil {
log.Printf("Error updating service: %s, %s", tunnel.Spec.ServiceName, err.Error())
}

if err != nil {
return fmt.Errorf("tunnel update error %s", err)
}

Expand All @@ -514,8 +511,6 @@ func (c *Controller) syncHandler(key string) error {
err = c.updateService(tunnel, host.IP)
if err != nil {
log.Printf("Error updating service: %s, %s", tunnel.Spec.ServiceName, err.Error())
}
if err != nil {
return fmt.Errorf("tunnel update error %s", err)
}
}
Expand All @@ -538,8 +533,6 @@ func (c *Controller) syncHandler(key string) error {
err = c.updateService(tunnel, host.IP)
if err != nil {
log.Printf("Error updating service: %s, %s", tunnel.Spec.ServiceName, err.Error())
}
if err != nil {
return fmt.Errorf("tunnel update error %s", err)
}
}
Expand Down

0 comments on commit 5381c4d

Please sign in to comment.