diff --git a/src/socket_base.cpp b/src/socket_base.cpp index 2e4c2a68..2893b4db 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -532,9 +532,7 @@ int zmq::socket_base_t::connect (const char *addr_) // PGM does not support subscription forwarding; ask for all data to be // sent to this pipe. - bool icanhasall = false; - if (protocol == "pgm" || protocol == "epgm") - icanhasall = true; + bool icanhasall = protocol == "pgm" || protocol == "epgm"; if (options.delay_attach_on_connect != 1 || icanhasall) { // Create a bi-directional pipe.