From 281a65b3e17310d07458652a3f6cba55aff59dc0 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Wed, 16 Jun 2021 23:21:21 +0200 Subject: Cleanup: simplify some boolean expressions --- src/script/api/script_list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script/api') diff --git a/src/script/api/script_list.cpp b/src/script/api/script_list.cpp index 1985cdbfb..623128bdd 100644 --- a/src/script/api/script_list.cpp +++ b/src/script/api/script_list.cpp @@ -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; } -- cgit v1.2.3-70-g09d2