From 4a1fb0d26242906229a6b3ab876a1b66feee37f8 Mon Sep 17 00:00:00 2001 From: Ali Rizvi-Santiago Date: Sat, 6 Jan 2018 19:46:52 -0600 Subject: [PATCH] Grrr...gofmt -w common/*.go --- common/config_test.go | 4 ++-- common/download.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/config_test.go b/common/config_test.go index f9b1748ce..bb2889f33 100644 --- a/common/config_test.go +++ b/common/config_test.go @@ -197,8 +197,8 @@ func TestDownloadableURL_FilePaths(t *testing.T) { } expected := fmt.Sprintf("%s%s", - filePrefix, - strings.Replace(tfPath, `\`, `/`, -1)) + filePrefix, + strings.Replace(tfPath, `\`, `/`, -1)) if u != expected { t.Fatalf("unexpected: %#v != %#v", u, expected) } diff --git a/common/download.go b/common/download.go index 27e9b32a8..fb7ce5584 100644 --- a/common/download.go +++ b/common/download.go @@ -208,7 +208,7 @@ func (d *DownloadClient) Get() (string, error) { } func (d *DownloadClient) PercentProgress() int { - if (d.downloader == nil) { + if d.downloader == nil { return -1 }