File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -276,16 +276,12 @@ func TestJWTFetch_AssertionPayload(t *testing.T) {
276
276
} // Check audience handling per RFC 7519
277
277
var expectedAud interface {}
278
278
if len (conf .Audiences ) > 0 {
279
- if len (conf .Audiences ) == 1 {
280
- expectedAud = conf .Audiences [0 ]
281
- } else {
282
- // When JSON unmarshals an array, it becomes []interface{}
283
- expectedAudSlice := make ([]interface {}, len (conf .Audiences ))
284
- for i , aud := range conf .Audiences {
285
- expectedAudSlice [i ] = aud
286
- }
287
- expectedAud = expectedAudSlice
279
+ // When JSON unmarshals an array, it becomes []interface{}
280
+ expectedAudSlice := make ([]interface {}, len (conf .Audiences ))
281
+ for i , aud := range conf .Audiences {
282
+ expectedAudSlice [i ] = aud
288
283
}
284
+ expectedAud = expectedAudSlice
289
285
} else if conf .Audience != "" {
290
286
expectedAud = conf .Audience
291
287
} else {
You can’t perform that action at this time.
0 commit comments