Skip to content

Commit

Permalink
Fix warnings about accessing unitialized variable
Browse files Browse the repository at this point in the history
in ad member service

lib/ldap_fluff/ad_member_service.rb:29: warning: instance variable
@domain_functionality not initialized
  • Loading branch information
adamruzicka committed Apr 10, 2024
1 parent 64bdcd1 commit e891abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ldap_fluff/ad_member_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def find_user_groups(uid)

# return the domain functionality level, default to 0
def _get_domain_func_level
return @domain_functionality unless @domain_functionality.nil?
return @domain_functionality if defined?(@domain_functionality)

@domain_functionality = 0

Expand Down

0 comments on commit e891abd

Please sign in to comment.