mirror of
https://github.com/anope/anope.git
synced 2026-06-30 08:36:38 +02:00
Simplify several boolean expressions.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user