diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-03-20 21:43:34 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-03-21 11:18:14 +0800 |
| commit | d2afc5f872b98e8e8f20307221bf13e7dafaac4e (patch) | |
| tree | 7bcf4d51b58061496ab26cba0b8684c88be91c86 | |
| parent | 07b4028a75a6ad79258ee82c56c7e20496c72244 (diff) | |
clang-format
| -rw-r--r-- | src/session.cpp | 4 | ||||
| -rw-r--r-- | src/sessionManager.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/session.cpp b/src/session.cpp index ee4c098..05d6873 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -102,8 +102,8 @@ std::unique_ptr<CSession::SRecvData> CSession::read() { recvData->good = false; else { recvData->data.resize(size); - recvData->good = true; - } + recvData->good = true; + } #ifdef DEBUG onRecv(*recvData); diff --git a/src/sessionManager.cpp b/src/sessionManager.cpp index f019cff..adf3834 100644 --- a/src/sessionManager.cpp +++ b/src/sessionManager.cpp @@ -75,8 +75,8 @@ void CSessionManager::kick(CSession *session, const bool &kill, const std::strin } void CSessionManager::kick(std::pair<std::jthread, std::shared_ptr<CSession>> *session, const bool &kill, const std::string &reason) { - if (!reason.empty()) - session->second->write(reason); + if (!reason.empty()) + session->second->write(reason); auto it = std::ranges::find_if(m_vSessions, [session](const auto &s) { return s.second.get() == session->second.get(); }); |
