From 7640fad30cc2a3d61e67a7075c27f26400d4779f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 27 Feb 2024 10:16:05 +0000 Subject: Simplify several boolean expressions. --- modules/hostserv/hs_request.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/hostserv/hs_request.cpp') 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: -- cgit