Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly committed Oct 24, 2024
1 parent f553dfe commit 1134c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/admission/admission.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"io"
"net/http"

log "github.com/sirupsen/logrus"
Expand Down Expand Up @@ -96,7 +96,7 @@ func validateRequest(req *http.Request) error {
}

func readRequestBody(req *http.Request) ([]byte, error) {
body, err := ioutil.ReadAll(req.Body)
body, err := io.ReadAll(req.Body)
if err != nil {
return nil, fmt.Errorf("unable to read Request Body: %v", err)
}
Expand Down

0 comments on commit 1134c08

Please sign in to comment.