Auth: fix camelCase in getFallbackStrategyFor() func (#80061)

fix camelCase in getFallbackStrategyFor() func
This commit is contained in:
Mihai Doarna 2024-01-05 12:25:59 +02:00 committed by GitHub
parent ca40e333df
commit 359b118e6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ func (s *SSOSettingsService) RegisterFallbackStrategy(providerRegex string, stra
}
func (s *SSOSettingsService) loadSettingsUsingFallbackStrategy(ctx context.Context, provider string) (*models.SSOSettings, error) {
loadStrategy, ok := s.getFallBackstrategyFor(provider)
loadStrategy, ok := s.getFallbackStrategyFor(provider)
if !ok {
return nil, errors.New("no fallback strategy found for provider: " + provider)
}
@ -204,7 +204,7 @@ func getSettingsByProvider(provider string, settings []*models.SSOSettings) []*m
return result
}
func (s *SSOSettingsService) getFallBackstrategyFor(provider string) (ssosettings.FallbackStrategy, bool) {
func (s *SSOSettingsService) getFallbackStrategyFor(provider string) (ssosettings.FallbackStrategy, bool) {
for _, strategy := range s.fbStrategies {
if strategy.IsMatch(provider) {
return strategy, true