Skip to content

Commit

Permalink
rename deprecated ioutil to os
Browse files Browse the repository at this point in the history
  • Loading branch information
muhlemmer committed Dec 5, 2023
1 parent 3dc601f commit 745cff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/client/system/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package system

import (
"context"
"io/ioutil"
"net/http"
"os"
"time"

"github.com/go-jose/go-jose/v3"
Expand Down Expand Up @@ -54,7 +54,7 @@ type JWTAuthenticationSource func() middleware.JWTProfileTokenSource
func JWTProfileFromPath(keyPath, userID string) JWTAuthenticationSource {
return func() middleware.JWTProfileTokenSource {
return func(issuer string, _ []string) (oauth2.TokenSource, error) {
key, err := ioutil.ReadFile(keyPath)
key, err := os.ReadFile(keyPath)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 745cff2

Please sign in to comment.