From 92827e45ee82bdb3719ddddc60889120a805a6a1 Mon Sep 17 00:00:00 2001 From: Martin Hurton Date: Wed, 18 Jul 2012 01:53:10 +0200 Subject: [PATCH] Small code cleanup --- src/socket_base.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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.