From f8bd10737457e9775038bda4448ae6bbb75cce74 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 6 Jun 2015 15:14:39 +0200 Subject: [PATCH] Clean up indent in StreamSocket::DoWrite() --- src/inspsocket.cpp | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 436cbb6bb..89c3a71a9 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -201,28 +201,12 @@ void StreamSocket::DoWrite() if (GetIOHook()) { - { - { - { - int rv = GetIOHook()->OnStreamSocketWrite(this); - if (rv > 0) - { - // consumed the entire string, and is ready for more - } - else if (rv == 0) - { - // socket has blocked. Stop trying to send data. - // IOHook has requested unblock notification from the socketengine - return; - } - else - { - SetError("Write Error"); // will not overwrite a better error message - return; - } - } - } - } + int rv = GetIOHook()->OnStreamSocketWrite(this); + if (rv < 0) + SetError("Write Error"); // will not overwrite a better error message + + // rv == 0 means the socket has blocked. Stop trying to send data. + // IOHook has requested unblock notification from the socketengine. } else { -- 2.39.5