mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-03 04:16:03 +02:00
use type for
This commit is contained in:
parent
244d8a9260
commit
8b2030a73f
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ func (bearerTokenFormat *BearerTokenFormat) ToPB() *configpb.BearerTokenFormat {
|
|||
|
||||
func decodeBearerTokenFormatHookFunc() mapstructure.DecodeHookFunc {
|
||||
return func(_, t reflect.Type, data any) (any, error) {
|
||||
if t != reflect.TypeOf(BearerTokenFormat("")) {
|
||||
if t != reflect.TypeFor[BearerTokenFormat]() {
|
||||
return data, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue