From d1db1351244346caf3b1544fa1cf966724d54cb6 Mon Sep 17 00:00:00 2001 From: Bill Robbins <23531640+bill-robbins-ss@users.noreply.github.com> Date: Thu, 20 Jan 2022 16:37:35 -0700 Subject: [PATCH] fix linting errors --- driver/config/provider.go | 2 +- driver/registry_sql.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/driver/config/provider.go b/driver/config/provider.go index 5e8ecf1cb4..d8f37c8267 100644 --- a/driver/config/provider.go +++ b/driver/config/provider.go @@ -71,7 +71,7 @@ const ( KeyOAuth2LegacyErrors = "oauth2.include_legacy_error_fields" KeyExcludeNotBeforeClaim = "oauth2.exclude_not_before_claim" KeyAllowedTopLevelClaims = "oauth2.allowed_top_level_claims" - KeyRefreshTokenRotationGracePeriod = "oauth2.refresh_token_rotation.grace_period" + KeyRefreshTokenRotationGracePeriod = "oauth2.refresh_token_rotation.grace_period" // #nosec G101 KeyOAuth2GrantJWTIDOptional = "oauth2.grant.jwt.jti_optional" KeyOAuth2GrantJWTIssuedDateOptional = "oauth2.grant.jwt.iat_optional" KeyOAuth2GrantJWTMaxDuration = "oauth2.grant.jwt.max_ttl" diff --git a/driver/registry_sql.go b/driver/registry_sql.go index 7e1db28892..3d6a500794 100644 --- a/driver/registry_sql.go +++ b/driver/registry_sql.go @@ -56,7 +56,9 @@ func NewRegistrySQL() *RegistrySQL { // SetConfig used for testing only. func (m *RegistrySQL) SetConfig(key string, value interface{}) { - m.C.Set(key, value) + if err := m.C.Set(key, value); err != nil { + m.l.WithError(err).Fatalf("Unable to set \"%s\" to \"%s\".", key, value) + } } func (m *RegistrySQL) Init(ctx context.Context) error {