File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ Metrics/BlockNesting:
221
221
# Offense count: 11
222
222
# Configuration parameters: CountComments.
223
223
Metrics/ClassLength :
224
- Max : 429
224
+ Max : 445
225
225
226
226
# Offense count: 23
227
227
Metrics/CyclomaticComplexity :
Original file line number Diff line number Diff line change @@ -1351,14 +1351,14 @@ def normalize_encryption(args)
1351
1351
# Recursively delete a dn and it's subordinate children.
1352
1352
# This is useful when a server does not support the DELETE_TREE control code.
1353
1353
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 )
1355
1355
# Delete Children
1356
1356
search ( base : args [ :dn ] , scope : Net ::LDAP ::SearchScope_SingleLevel ) do |entry |
1357
1357
recursive_delete ( dn : entry . dn )
1358
1358
end
1359
1359
# Delete Self
1360
1360
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
1362
1362
end
1363
1363
true
1364
1364
end
You can’t perform that action at this time.
0 commit comments