mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-13 14:45:38 +02:00
V728 An excessive check 'options.mechanism == 0' can be simplified.
The '||' operator is surrounded by opposite expressions. session_base.cpp 377
This commit is contained in:
@@ -374,7 +374,7 @@ bool zmq::session_base_t::zap_enabled ()
|
||||
{
|
||||
return (
|
||||
options.mechanism != ZMQ_NULL ||
|
||||
(options.mechanism == ZMQ_NULL && options.zap_domain.length() > 0)
|
||||
!options.zap_domain.empty()
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user