Skip to content

Commit

Permalink
Apply comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarek committed Feb 25, 2015
1 parent 9996654 commit 0be5aa5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/cloudprovider/gce/gce.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ func (gce *GCECloud) makeTargetPool(name, region string, hosts []string, affinit
if err != nil {
return "", err
}
err = gce.waitForRegionOp(op, region)
if err != nil {
if err = gce.waitForRegionOp(op, region); err != nil {
return "", err
}
link := fmt.Sprintf("https://www.googleapis.com/compute/v1/projects/%s/regions/%s/targetPools/%s", gce.projectID, region, name)
Expand Down Expand Up @@ -259,10 +258,10 @@ func (gce *GCECloud) UpdateTCPLoadBalancer(name, region string, hosts []string)
}

op, err := gce.service.TargetPools.AddInstance(gce.projectID, region, name, req).Do()
gce.waitForRegionOp(op, region)
if err != nil {
return err
}
err = gce.waitForRegionOp(op, region)
return err
}

Expand Down

0 comments on commit 0be5aa5

Please sign in to comment.