Cleanup: use ELEM macro (>2 args)

This commit is contained in:
2020-11-06 12:51:49 +11:00
parent d89fedf266
commit f11f7ce08e
16 changed files with 71 additions and 55 deletions

View File

@@ -2461,7 +2461,7 @@ int text_check_identifier_nodigit_unicode(const unsigned int ch)
bool text_check_whitespace(const char ch)
{
if (ch == ' ' || ch == '\t' || ch == '\r' || ch == '\n') {
if (ELEM(ch, ' ', '\t', '\r', '\n')) {
return true;
}
return false;