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:
parent
eb1181b898
commit
39993a8fab
2 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue