Cleanup: simplify some boolean expressions

This commit is contained in:
Rubidium
2021-06-16 23:21:21 +02:00
committed by rubidium42
parent 357af686dc
commit 281a65b3e1
9 changed files with 17 additions and 25 deletions

View File

@@ -468,7 +468,7 @@ int64 ScriptList::Begin()
int64 ScriptList::Next()
{
if (this->initialized == false) {
if (!this->initialized) {
Debug(script, 0, "Next() is invalid as Begin() is never called");
return 0;
}
@@ -482,7 +482,7 @@ bool ScriptList::IsEmpty()
bool ScriptList::IsEnd()
{
if (this->initialized == false) {
if (!this->initialized) {
Debug(script, 0, "IsEnd() is invalid as Begin() is never called");
return true;
}