Skip to content

Commit

Permalink
lb linted
Browse files Browse the repository at this point in the history
  • Loading branch information
ddymko committed Nov 19, 2020
1 parent fc14a24 commit 710f3ab
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,7 @@ func (l *LoadBalancerHandler) Update(ctx context.Context, ID string, updateReq *
return err
}

if err = l.client.DoWithContext(ctx, req, nil); err != nil {
return err
}

return nil
return l.client.DoWithContext(ctx, req, nil)
}

// Delete a load balancer subscription.
Expand All @@ -180,11 +176,7 @@ func (l *LoadBalancerHandler) Delete(ctx context.Context, ID string) error {
return err
}

if err = l.client.DoWithContext(ctx, req, nil); err != nil {
return err
}

return nil
return l.client.DoWithContext(ctx, req, nil)
}

// List all load balancer subscriptions on the current account.
Expand Down Expand Up @@ -273,9 +265,5 @@ func (l *LoadBalancerHandler) DeleteForwardingRule(ctx context.Context, ID strin
return err
}

if err = l.client.DoWithContext(ctx, req, nil); err != nil {
return err
}

return nil
return l.client.DoWithContext(ctx, req, nil)
}

0 comments on commit 710f3ab

Please sign in to comment.