mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
Kernel: Fix inverted logic in KResultOr
This silly inversion has survived so long because we don't exercise the 'unhappy paths' enough. :^)
This commit is contained in:
parent
94bb544c33
commit
38c5b3f788
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ public:
|
|||
return m_error;
|
||||
}
|
||||
|
||||
KResult result() const { return m_is_error ? KSuccess : m_error; }
|
||||
KResult result() const { return m_is_error ? m_error : KSuccess; }
|
||||
|
||||
ALWAYS_INLINE T& value()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue