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:
pavel.pimenov
2017-09-04 15:25:31 +03:00
parent 7afd6ab5ef
commit 0e8bf3520c

View File

@@ -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()
);
}