1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:17:35 +00:00

Kernel: Avoid else after return in Process and ThreadSafeRefCounted

This commit is contained in:
Andrew Kaster 2021-10-31 16:51:08 -06:00 committed by Andreas Kling
parent eb1181b898
commit 39993a8fab
2 changed files with 4 additions and 5 deletions

View file

@ -100,9 +100,9 @@ public:
call_will_be_destroyed_if_present(static_cast<const T*>(this));
delete static_cast<const T*>(this);
return true;
} else if (new_ref_count == 1) {
call_one_ref_left_if_present(static_cast<const T*>(this));
}
if (new_ref_count == 1)
call_one_ref_left_if_present(static_cast<const T*>(this));
return false;
}
};