mirror of https://github.com/knative/pkg.git
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:
parent
25b3f456f0
commit
4f143e6ce3
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue