mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-31 18:07:17 +02:00
core/lint: upgrade golangci-lint, replace interface{} with any (#5099)
* core/lint: upgrade golangci-lint, replace interface{} with any * regen proto
This commit is contained in:
parent
614048ae9c
commit
1a5b8b606f
135 changed files with 341 additions and 340 deletions
|
@ -61,8 +61,8 @@ func (x *User) AddClaims(claims identity.FlattenedClaims) {
|
|||
// GetClaim returns a claim.
|
||||
//
|
||||
// This method is used by the dashboard template HTML to display claim data.
|
||||
func (x *User) GetClaim(claim string) []interface{} {
|
||||
var vs []interface{}
|
||||
func (x *User) GetClaim(claim string) []any {
|
||||
var vs []any
|
||||
for _, sv := range x.GetClaims()[claim].GetValues() {
|
||||
vs = append(vs, sv.AsInterface())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue