summaryrefslogtreecommitdiff
path: root/net/SslSocket.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'net/SslSocket.hpp')
-rw-r--r--net/SslSocket.hpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/SslSocket.hpp b/net/SslSocket.hpp
index ec732c1ad..52292c588 100644
--- a/net/SslSocket.hpp
+++ b/net/SslSocket.hpp
@@ -81,9 +81,7 @@ public:
const int rc = doHandshake();
if (rc <= 0)
- {
- return (rc != 0);
- }
+ return rc != 0;
// Default implementation.
return StreamSocket::readIncomingData();
@@ -168,9 +166,7 @@ private:
{
rc = handleSslState(rc);
if (rc <= 0)
- {
- return (rc != 0);
- }
+ return rc != 0;
}
_doHandshake = false;