mirror of https://github.com/docker/docs.git
Fmt fixes
Signed-off-by: Olivier Gambier <viapanda@gmail.com>
This commit is contained in:
parent
08208bd141
commit
9d60bb7c73
|
@ -97,7 +97,7 @@ func (c *ComputeUtil) staticAddress() (string, error) {
|
|||
return "", err
|
||||
}
|
||||
|
||||
if (!isName) {
|
||||
if !isName {
|
||||
return c.address, nil
|
||||
}
|
||||
|
||||
|
@ -110,7 +110,7 @@ func (c *ComputeUtil) staticAddress() (string, error) {
|
|||
return externalAddress.Address, nil
|
||||
}
|
||||
|
||||
func (c *ComputeUtil) region() (string) {
|
||||
func (c *ComputeUtil) region() string {
|
||||
return c.zone[:len(c.zone)-2]
|
||||
}
|
||||
|
||||
|
|
|
@ -452,7 +452,7 @@ func GetHostListItems(hostList []*Host) []HostListItem {
|
|||
go getHostState(*host, hostListItemsChan)
|
||||
}
|
||||
|
||||
for _ = range hostList {
|
||||
for range hostList {
|
||||
hostListItems = append(hostListItems, <-hostListItemsChan)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue