Skip to content

Commit 60ee236

Browse files
committed
Ensure detect_strategy returns the strategy class
1 parent 941a577 commit 60ee236

File tree

1 file changed

+2
-2
lines changed
  • lib/github/ldap/membership_validators

1 file changed

+2
-2
lines changed

lib/github/ldap/membership_validators/detect.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def detect_strategy
3535
when GitHub::Ldap::MembershipValidators::STRATEGIES.key?(strategy_config)
3636
GitHub::Ldap::MembershipValidators::STRATEGIES[strategy_config]
3737
when active_directory_capability?
38-
:active_directory
38+
GitHub::Ldap::MembershipValidators::STRATEGIES[:active_directory]
3939
else
40-
:recursive
40+
GitHub::Ldap::MembershipValidators::STRATEGIES[:recursive]
4141
end
4242
end
4343

0 commit comments

Comments
 (0)