From 0e8bf3520c136340fe1c54091e5912636c87f8fc Mon Sep 17 00:00:00 2001 From: "pavel.pimenov" Date: Mon, 4 Sep 2017 15:25:31 +0300 Subject: [PATCH] V728 An excessive check 'options.mechanism == 0' can be simplified. The '||' operator is surrounded by opposite expressions. session_base.cpp 377 --- src/session_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session_base.cpp b/src/session_base.cpp index b310441a..368598b8 100644 --- a/src/session_base.cpp +++ b/src/session_base.cpp @@ -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() ); }