mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 07:09:47 +00:00
Kernel: Use TRY() in FileDescription::attach()
This commit is contained in:
parent
aa4d5817af
commit
abb43468dc
Notes:
sideshowbarker
2024-07-18 04:42:24 +09:00
Author: https://github.com/awesomekling
Commit: abb43468dc
1 changed files with 2 additions and 5 deletions
|
@ -74,11 +74,8 @@ FileDescription::~FileDescription()
|
||||||
|
|
||||||
KResult FileDescription::attach()
|
KResult FileDescription::attach()
|
||||||
{
|
{
|
||||||
if (m_inode) {
|
if (m_inode)
|
||||||
auto result = m_inode->attach(*this);
|
TRY(m_inode->attach(*this));
|
||||||
if (result.is_error())
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
return m_file->attach(*this);
|
return m_file->attach(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue