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.
This commit is contained in:
parent
47fe8875ee
commit
3654e68f63
@ -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())
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user