pkg/oidc: Replace interface{}
with any
Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
This commit is contained in:
parent
4e6033896d
commit
868cf39632
8 changed files with 22 additions and 22 deletions
|
@ -17,7 +17,7 @@ const dataDir = "regression_data"
|
|||
|
||||
// jsonFilename builds a filename for the regression testdata.
|
||||
// dataDir/<type_name>.json
|
||||
func jsonFilename(obj interface{}) string {
|
||||
func jsonFilename(obj any) string {
|
||||
name := fmt.Sprintf("%T.json", obj)
|
||||
return path.Join(
|
||||
dataDir,
|
||||
|
@ -25,13 +25,13 @@ func jsonFilename(obj interface{}) string {
|
|||
)
|
||||
}
|
||||
|
||||
func encodeJSON(t *testing.T, w io.Writer, obj interface{}) {
|
||||
func encodeJSON(t *testing.T, w io.Writer, obj any) {
|
||||
enc := json.NewEncoder(w)
|
||||
enc.SetIndent("", "\t")
|
||||
require.NoError(t, enc.Encode(obj))
|
||||
}
|
||||
|
||||
var regressionData = []interface{}{
|
||||
var regressionData = []any{
|
||||
accessTokenData,
|
||||
idTokenData,
|
||||
introspectionResponseData,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue