Commit 0e8bf352 authored by pavel.pimenov's avatar pavel.pimenov

V728 An excessive check 'options.mechanism == 0' can be simplified.

The '||' operator is surrounded by opposite expressions. session_base.cpp 377
parent 7afd6ab5
......@@ -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()
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment