We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b133b31 commit f046564Copy full SHA for f046564
lib/net/ldap/connection.rb
@@ -577,7 +577,7 @@ def search(args = nil)
577
578
# in the exceptional case some messages were *not* consumed from the queue,
579
# instrument the event but do not fail.
580
- unless messages.nil? or messages.empty?
+ if !messages.nil? && !messages.empty?
581
instrument "search_messages_unread.net_ldap_connection",
582
message_id: message_id, messages: messages
583
end
0 commit comments