From 9d60bb7c7397787de3e7e47bedc5451ba3b09307 Mon Sep 17 00:00:00 2001 From: Olivier Gambier Date: Thu, 10 Sep 2015 18:27:13 -0700 Subject: [PATCH] Fmt fixes Signed-off-by: Olivier Gambier --- drivers/google/compute_util.go | 4 ++-- libmachine/host.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/google/compute_util.go b/drivers/google/compute_util.go index 159788c56b..32fe58e502 100644 --- a/drivers/google/compute_util.go +++ b/drivers/google/compute_util.go @@ -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] } diff --git a/libmachine/host.go b/libmachine/host.go index feccc25afa..8be393b32e 100644 --- a/libmachine/host.go +++ b/libmachine/host.go @@ -452,7 +452,7 @@ func GetHostListItems(hostList []*Host) []HostListItem { go getHostState(*host, hostListItemsChan) } - for _ = range hostList { + for range hostList { hostListItems = append(hostListItems, <-hostListItemsChan) }