mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
Kernel: Remove redundant [[nodiscard]] on KResult return values
Both KResult and KResultOr are [[nodiscard]] at the class level, so there's no need to have functions return `[[nodiscard]] KResult`.
This commit is contained in:
parent
e6929835d2
commit
4b4e1d1c90
8 changed files with 21 additions and 21 deletions
|
@ -141,7 +141,7 @@ public:
|
|||
return m_error;
|
||||
}
|
||||
|
||||
[[nodiscard]] KResult result() const { return m_is_error ? m_error : KSuccess; }
|
||||
KResult result() const { return m_is_error ? m_error : KSuccess; }
|
||||
|
||||
[[nodiscard]] ALWAYS_INLINE T& value() &
|
||||
{
|
||||
|
@ -167,7 +167,7 @@ public:
|
|||
return released_value;
|
||||
}
|
||||
|
||||
[[nodiscard]] KResult release_error()
|
||||
KResult release_error()
|
||||
{
|
||||
VERIFY(m_is_error);
|
||||
return m_error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue