Skip to content

Commit 5893284

Browse files
Rubocop fixes
1 parent adfdce0 commit 5893284

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.rubocop_todo.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Metrics/BlockNesting:
221221
# Offense count: 11
222222
# Configuration parameters: CountComments.
223223
Metrics/ClassLength:
224-
Max: 429
224+
Max: 445
225225

226226
# Offense count: 23
227227
Metrics/CyclomaticComplexity:

lib/net/ldap.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1351,14 +1351,14 @@ def normalize_encryption(args)
13511351
# Recursively delete a dn and it's subordinate children.
13521352
# This is useful when a server does not support the DELETE_TREE control code.
13531353
def recursive_delete(args)
1354-
raise EmptyDNError unless args.is_a?(Hash) && args.has_key?(:dn)
1354+
raise EmptyDNError unless args.is_a?(Hash) && args.key?(:dn)
13551355
# Delete Children
13561356
search(base: args[:dn], scope: Net::LDAP::SearchScope_SingleLevel) do |entry|
13571357
recursive_delete(dn: entry.dn)
13581358
end
13591359
# Delete Self
13601360
unless delete(dn: args[:dn])
1361-
raise Net::LDAP::Error, self.get_operation_result[:error_message].to_s
1361+
raise Net::LDAP::Error, get_operation_result[:error_message].to_s
13621362
end
13631363
true
13641364
end

0 commit comments

Comments
 (0)