Fix errors by removing the isNotBlank boolean and using hasNext instead

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-03-04 19:18:46 +01:00
parent 33e29ccb8e
commit 9d7300ce89
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 2 deletions

View File

@ -42,8 +42,7 @@ namespace Parser {
if (next.toktype == IDENTIFIER) {
parseTree << Class(next.toktext); ++i;
} else {
const bool isNotBlank = not next.toktext.empty();
parsingError(next, isNotBlank ? " is not a valid class identifier" : "A class identifier is required", isNotBlank);
parsingError(next, hasNext ? " is not a valid class identifier" : "A class identifier is required", hasNext);
}
} else {
bool isFinalDefine = nextAre({TAG, DEFINE});