Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-robbins-ss committed Jan 20, 2022
1 parent e992907 commit d1db135
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion driver/config/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion driver/registry_sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d1db135

Please sign in to comment.