1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 01:16:38 +02:00

Simplify several boolean expressions.

This commit is contained in:
Sadie Powell
2024-02-27 10:16:05 +00:00
parent 9f6d378755
commit 7640fad30c
27 changed files with 40 additions and 50 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ public:
/* Close connection once all data is written */
bool ProcessWrite() override
{
return !BinarySocket::ProcessWrite() || this->write_buffer.empty() ? false : true;
return !(!BinarySocket::ProcessWrite() || this->write_buffer.empty());
}
const Anope::string GetIP() override