File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ Metrics/BlockNesting:
221221# Offense count: 11
222222# Configuration parameters: CountComments.
223223Metrics/ClassLength :
224- Max : 429
224+ Max : 445
225225
226226# Offense count: 23
227227Metrics/CyclomaticComplexity :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments