1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +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
+2 -2
View File
@@ -72,7 +72,7 @@ class Packet final
throw SocketException("Unable to unpack name - bogus compression header");
/* Place pos at the second byte of the first (farthest) compression pointer */
if (compressed == false)
if (!compressed)
{
++pos;
compressed = true;
@@ -95,7 +95,7 @@ class Packet final
name += input[pos_ptr + i];
pos_ptr += offset + 1;
if (compressed == false)
if (!compressed)
/* Move up pos */
pos = pos_ptr;
}