From e36394733e9014862b15834192a47a937b6545be Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Tue, 5 Jul 2016 09:21:08 -0400 Subject: [PATCH] Make bracket style consistent --- HttpClient.cpp | 7 +++++-- WebSocketClient.cpp | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/HttpClient.cpp b/HttpClient.cpp index 287e8c7..498d26c 100644 --- a/HttpClient.cpp +++ b/HttpClient.cpp @@ -78,7 +78,8 @@ int HttpClient::startRequest(const char* aURLPath, const char* aHttpMethod, if (iConnectionClose || !iClient->connected()) { - if (iServerName) { + if (iServerName) + { if (!iClient->connect(iServerName, iServerPort) > 0) { #ifdef LOGGING @@ -86,7 +87,9 @@ int HttpClient::startRequest(const char* aURLPath, const char* aHttpMethod, #endif return HTTP_ERROR_CONNECTION_FAILED; } - } else { + } + else + { if (!iClient->connect(iServerAddress, iServerPort) > 0) { #ifdef LOGGING diff --git a/WebSocketClient.cpp b/WebSocketClient.cpp index 1237b04..f78d946 100644 --- a/WebSocketClient.cpp +++ b/WebSocketClient.cpp @@ -340,7 +340,8 @@ int WebSocketClient::read(uint8_t *aBuffer, size_t aSize) // unmask the RX data if needed if (iRxMasked) { - for (int i = 0; i < (int)aSize; i++, iRxMaskIndex++) { + for (int i = 0; i < (int)aSize; i++, iRxMaskIndex++) + { aBuffer[i] ^= iRxMaskKey[iRxMaskIndex % sizeof(iRxMaskKey)]; } }