mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 00:10:45 +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
|
@ -15,7 +15,7 @@ import (
|
|||
|
||||
var outboundGRPCConnection = new(grpc.CachedOutboundGRPClientConn)
|
||||
|
||||
func populateUserFromClaims(u *user.User, claims map[string]interface{}) {
|
||||
func populateUserFromClaims(u *user.User, claims map[string]any) {
|
||||
if v, ok := claims["name"]; ok {
|
||||
u.Name = fmt.Sprint(v)
|
||||
}
|
||||
|
|
|
@ -363,7 +363,7 @@ type protoEqualMatcher struct {
|
|||
expected proto.Message
|
||||
}
|
||||
|
||||
func (m protoEqualMatcher) Matches(x interface{}) bool {
|
||||
func (m protoEqualMatcher) Matches(x any) bool {
|
||||
p, ok := x.(proto.Message)
|
||||
if !ok {
|
||||
return false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue