Skip to content

Commit

Permalink
chore: remove refs to deprecated io/ioutil
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored and alexellis committed Sep 4, 2023
1 parent 7b1aaf5 commit d60bb0e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/handlers/namespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"

Expand Down Expand Up @@ -78,7 +77,7 @@ func NewNamespaceResolver(defaultNamespace string, kube kubernetes.Interface) Na
}

// Reconstruct Body
r.Body = ioutil.NopCloser(bytes.NewBuffer(body))
r.Body = io.NopCloser(bytes.NewBuffer(body))
}

if req.Namespace != defaultNamespace {
Expand Down

0 comments on commit d60bb0e

Please sign in to comment.