Scheduler: Remove redundant check in for_each_child
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-04-28 15:22:16 +02:00
parent 7b4cfd52cd
commit 52ce4b28aa
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -33,7 +33,7 @@ namespace Scheduler
{
for (Thread* current = thread; current; current = g_threads.next(current).value_or(nullptr))
{
if (current && current->parent_id == thread->id)
if (current->parent_id == thread->id)
{
bool should_continue = callback(current);
if (!should_continue) return;