Skip to content

Commit c4838a7

Browse files
authored
changing release 1.8 to support newest go autogenerated code changes (#1023)
* changin release 1.8 to support newest go autogenerated code changes * fixed lint * fixed lint * fixed lint
1 parent c482a4e commit c4838a7

File tree

6 files changed

+34
-30
lines changed

6 files changed

+34
-30
lines changed

pkg/adapter/adapter_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package rabbitmq
1919
import (
2020
"context"
2121
"encoding/json"
22-
"io/ioutil"
22+
"io"
2323
"net/http"
2424
"net/http/httptest"
2525
"reflect"
@@ -209,7 +209,7 @@ func (h *fakeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
209209
h.mu.Lock()
210210
defer h.mu.Unlock()
211211
h.header = r.Header
212-
body, err := ioutil.ReadAll(r.Body)
212+
body, err := io.ReadAll(r.Body)
213213
if err != nil {
214214
http.Error(w, "can not read body", http.StatusBadRequest)
215215
return

pkg/apis/duck/v1beta1/register_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
/*
22
Copyright 2020 The Knative Authors
3+
34
Licensed under the Apache License, Version 2.0 (the "License");
45
you may not use this file except in compliance with the License.
56
You may obtain a copy of the License at
7+
68
http://www.apache.org/licenses/LICENSE-2.0
9+
710
Unless required by applicable law or agreed to in writing, software
811
distributed under the License is distributed on an "AS IS" BASIS,
912
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1013
See the License for the specific language governing permissions and
1114
limitations under the License.
1215
*/
16+
1317
package v1beta1
1418

1519
import (

pkg/client/clientset/versioned/fake/register.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/clientset/versioned/scheme/register.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third_party/pkg/client/clientset/versioned/fake/register.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third_party/pkg/client/clientset/versioned/scheme/register.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)