From 3654e68f63ddb4310235f364a8b40c8634a60670 Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Wed, 11 Sep 2019 14:37:13 +0000 Subject: [PATCH] config: tidy existing files with goimports These files had too little whitespace in some cases and too much whitespace in others. Tidy them with goimports to ensure that developers can build without having modified files. --- config/config_test.go | 12 ++++++------ config/git_fetcher.go | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/config_test.go b/config/config_test.go index e01b72c4..fd978fc8 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -332,11 +332,11 @@ func TestCurrentTimestamp(t *testing.T) { } func TestRemoteNameWithDotDefault(t *testing.T) { - cfg := NewFrom(Values{ - Git: map[string][]string{ - "remote.name.with.dot.url": []string{"http://remote.url/repo"}, - }, - }) + cfg := NewFrom(Values{ + Git: map[string][]string{ + "remote.name.with.dot.url": []string{"http://remote.url/repo"}, + }, + }) - assert.Equal(t, "name.with.dot", cfg.Remote()) + assert.Equal(t, "name.with.dot", cfg.Remote()) } diff --git a/config/git_fetcher.go b/config/git_fetcher.go index ea33f73b..bc1cc111 100644 --- a/config/git_fetcher.go +++ b/config/git_fetcher.go @@ -85,7 +85,7 @@ func readGitConfig(configs ...*git.ConfigurationSource) (gf *GitFetcher, extensi } allowed = true - remote := strings.Join(parts[1:len(parts)-1],".") + remote := strings.Join(parts[1:len(parts)-1], ".") uniqRemotes[remote] = remote == "origin" } else if len(parts) > 2 && parts[len(parts)-1] == "access" { allowed = true