use type for

This commit is contained in:
Caleb Doxsey 2025-02-18 08:25:46 -07:00
parent 244d8a9260
commit 8b2030a73f

View file

@ -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
}