Skip to content

Commit

Permalink
fix(metadata): functional opt sets wrong value
Browse files Browse the repository at this point in the history
This fixes an issue where the functional option sets the wrong value.
  • Loading branch information
james-d-elliott committed Aug 6, 2024
1 parent ceb7159 commit 37b2a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadata/providers/memory/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func WithValidateStatus(validate bool) Option {
// known types the authenticator can produce. Default is true.
func WithValidateAttestationTypes(validate bool) Option {
return func(provider *Provider) (err error) {
provider.status = validate
provider.attestation = validate

return nil
}
Expand Down

0 comments on commit 37b2a5f

Please sign in to comment.