summaryrefslogtreecommitdiffstats
path: root/source/core/slang-http.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-http.cpp')
-rw-r--r--source/core/slang-http.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/core/slang-http.cpp b/source/core/slang-http.cpp
index fa7ca952b..ec1ccc0a2 100644
--- a/source/core/slang-http.cpp
+++ b/source/core/slang-http.cpp
@@ -247,9 +247,12 @@ SlangResult HTTPPacketConnection::update()
{
switch (m_readState)
{
- case ReadState::Closed: return SLANG_OK;
- case ReadState::Error: return m_readResult;
- default: break;
+ case ReadState::Closed:
+ return SLANG_OK;
+ case ReadState::Error:
+ return m_readResult;
+ default:
+ break;
}
SLANG_RETURN_ON_FAIL(_updateReadResult(m_readStream->update()));
@@ -287,7 +290,8 @@ SlangResult HTTPPacketConnection::update()
_handleContent();
break;
}
- default: break;
+ default:
+ break;
}
return m_readResult;