run gofumpt cleanup across code-base (#14015)

This commit is contained in:
Harshavardhana
2022-01-02 09:15:06 -08:00
committed by GitHub
parent 6f474982ed
commit f527c708f2
250 changed files with 1201 additions and 1264 deletions

View File

@@ -45,7 +45,8 @@ func TestGetScheme(t *testing.T) {
req := &http.Request{
Header: http.Header{
v.key: []string{v.val},
}}
},
}
res := GetSourceScheme(req)
if res != v.expected {
t.Errorf("wrong header for %s: got %s want %s", v.key, res,
@@ -74,7 +75,8 @@ func TestGetSourceIP(t *testing.T) {
req := &http.Request{
Header: http.Header{
v.key: []string{v.val},
}}
},
}
res := GetSourceIP(req)
if res != v.expected {
t.Errorf("wrong header for %s: got %s want %s", v.key, res,