Skip to content

Commit abb1d49

Browse files
Merge pull request #327 from pvdb/fix_sort_control_warning
Make `encode_sort_controls()` more idiomatic...
2 parents 4faeee0 + 67336c8 commit abb1d49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/ldap/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def encode_sort_controls(sort_definitions)
300300
control[2] = (control[2] == true).to_ber
301301
control.to_ber_sequence
302302
end
303-
sort_control = [
303+
[
304304
Net::LDAP::LDAPControls::SORT_REQUEST.to_ber,
305305
false.to_ber,
306306
sort_control_values.to_ber_sequence.to_s.to_ber,

0 commit comments

Comments
 (0)