mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 11:39:44 +03: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
Notes:
sideshowbarker
2024-07-18 23:11:22 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/38c5b3f7881 Pull-request: https://github.com/SerenityOS/serenity/pull/4973
@ -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…
Reference in New Issue
Block a user