summaryrefslogtreecommitdiff
path: root/modules/hostserv/hs_request.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-27 10:16:05 +0000
committerSadie Powell <sadie@witchery.services>2024-02-27 10:19:44 +0000
commit7640fad30cc2a3d61e67a7075c27f26400d4779f (patch)
treef313f0e7cf6fafd1c94f7bd2b3650a207f941ccc /modules/hostserv/hs_request.cpp
parent9f6d3787559febb48611b1477eaa6a35beadf71a (diff)
Simplify several boolean expressions.
Diffstat (limited to 'modules/hostserv/hs_request.cpp')
-rw-r--r--modules/hostserv/hs_request.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/hostserv/hs_request.cpp b/modules/hostserv/hs_request.cpp
index 1156d0538..dac9fc738 100644
--- a/modules/hostserv/hs_request.cpp
+++ b/modules/hostserv/hs_request.cpp
@@ -69,9 +69,7 @@ class CommandHSRequest final
{
bool isvalidchar(char c)
{
- if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '.' || c == '-')
- return true;
- return false;
+ return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '.' || c == '-';
}
public: