golang format tools (#263)

Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))`
  `goimports -w $(find -name '*.go' | grep -v vendor)`
This commit is contained in:
mattmoor-sockpuppet 2019-02-07 08:17:41 -08:00 committed by Knative Prow Robot
parent 25b3f456f0
commit 4f143e6ce3
3 changed files with 4 additions and 4 deletions

View File

@ -429,7 +429,7 @@ can not use @, do not try`,
if test.want != "" {
if got, want := fe.Error(), test.want; got != want {
t.Errorf("%s: Error() = %q, wanted %q, diff: %s", test.name, got, want, cmp.Diff(got, want))
t.Errorf("%s: Error() = %q, wanted %q, diff: %s", test.name, got, want, cmp.Diff(got, want))
}
} else if fe != nil {
t.Errorf("%s: ViaField() = %v, wanted nil", test.name, fe)

View File

@ -380,7 +380,7 @@ func canonicalizeHeaders(rvs ...requestValidation) {
for n, v := range headers {
delete(headers, n)
ln := strings.ToLower(n)
if !unimportantHeaders.Has(ln){
if !unimportantHeaders.Has(ln) {
headers[ln] = v
}
}

View File

@ -60,8 +60,8 @@ var (
// it leaves this stack frame. The workaround is to pass a pointer to an interface and then
// get the type of its reference.
// For example, see: https://play.golang.org/p/_dxLvdkvqvg
contextType = reflect.TypeOf((*context.Context)(nil)).Elem()
errorType = reflect.TypeOf((*error)(nil)).Elem()
contextType = reflect.TypeOf((*context.Context)(nil)).Elem()
errorType = reflect.TypeOf((*error)(nil)).Elem()
sendContextType = reflect.TypeOf((*SendContext)(nil)).Elem()
)