Skip to content

Commit

Permalink
Rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HarlemSquirrel committed Aug 24, 2020
1 parent adfdce0 commit 5893284
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ Metrics/BlockNesting:
# Offense count: 11
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 429
Max: 445

# Offense count: 23
Metrics/CyclomaticComplexity:
Expand Down
4 changes: 2 additions & 2 deletions lib/net/ldap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1351,14 +1351,14 @@ def normalize_encryption(args)
# Recursively delete a dn and it's subordinate children.
# This is useful when a server does not support the DELETE_TREE control code.
def recursive_delete(args)
raise EmptyDNError unless args.is_a?(Hash) && args.has_key?(:dn)
raise EmptyDNError unless args.is_a?(Hash) && args.key?(:dn)
# Delete Children
search(base: args[:dn], scope: Net::LDAP::SearchScope_SingleLevel) do |entry|
recursive_delete(dn: entry.dn)
end
# Delete Self
unless delete(dn: args[:dn])
raise Net::LDAP::Error, self.get_operation_result[:error_message].to_s
raise Net::LDAP::Error, get_operation_result[:error_message].to_s
end
true
end
Expand Down

0 comments on commit 5893284

Please sign in to comment.