mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
Kernel: Simplify some if statements
This commit is contained in:
parent
04d75f4ff9
commit
23037d619a
3 changed files with 3 additions and 8 deletions
|
@ -336,9 +336,7 @@ private:
|
|||
ProcFSSelfProcessDirectory();
|
||||
virtual bool acquire_link(KBufferBuilder& builder) override
|
||||
{
|
||||
if (builder.appendff("{}", Process::current().pid().value()).is_error())
|
||||
return false;
|
||||
return true;
|
||||
return !builder.appendff("{}", Process::current().pid().value()).is_error();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue