From 8b2030a73f73ba6816bcdac36889a33b9635af3e Mon Sep 17 00:00:00 2001 From: Caleb Doxsey Date: Tue, 18 Feb 2025 08:25:46 -0700 Subject: [PATCH] use type for --- config/bearer_token_format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/bearer_token_format.go b/config/bearer_token_format.go index 90d1ff07c..86430907b 100644 --- a/config/bearer_token_format.go +++ b/config/bearer_token_format.go @@ -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 }