Fmt fixes

Signed-off-by: Olivier Gambier <viapanda@gmail.com>
This commit is contained in:
Olivier Gambier 2015-09-10 18:27:13 -07:00
parent 08208bd141
commit 9d60bb7c73
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ func (c *ComputeUtil) staticAddress() (string, error) {
return "", err return "", err
} }
if (!isName) { if !isName {
return c.address, nil return c.address, nil
} }
@ -110,7 +110,7 @@ func (c *ComputeUtil) staticAddress() (string, error) {
return externalAddress.Address, nil return externalAddress.Address, nil
} }
func (c *ComputeUtil) region() (string) { func (c *ComputeUtil) region() string {
return c.zone[:len(c.zone)-2] return c.zone[:len(c.zone)-2]
} }

View File

@ -452,7 +452,7 @@ func GetHostListItems(hostList []*Host) []HostListItem {
go getHostState(*host, hostListItemsChan) go getHostState(*host, hostListItemsChan)
} }
for _ = range hostList { for range hostList {
hostListItems = append(hostListItems, <-hostListItemsChan) hostListItems = append(hostListItems, <-hostListItemsChan)
} }