Skip to content

Commit f046564

Browse files
author
Jerry Cheung
committed
use if for conjunction conditional
1 parent b133b31 commit f046564

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
@@ -577,7 +577,7 @@ def search(args = nil)
577577

578578
# in the exceptional case some messages were *not* consumed from the queue,
579579
# instrument the event but do not fail.
580-
unless messages.nil? or messages.empty?
580+
if !messages.nil? && !messages.empty?
581581
instrument "search_messages_unread.net_ldap_connection",
582582
message_id: message_id, messages: messages
583583
end

0 commit comments

Comments
 (0)