libluna: Remove redundant return statements in Result<void>
This commit is contained in:
parent
37547ec640
commit
de25338d6c
@ -237,25 +237,21 @@ template <> class Result<void>
|
||||
void value(SourceLocation caller = SourceLocation::current()) const
|
||||
{
|
||||
expect_at(has_value(), caller, "Result::value() called on a Result that holds an error");
|
||||
return;
|
||||
}
|
||||
|
||||
void expect_value(const char* reason, SourceLocation caller = SourceLocation::current()) const
|
||||
{
|
||||
expect_at(has_value(), caller, reason);
|
||||
return;
|
||||
}
|
||||
|
||||
void release_value(SourceLocation caller = SourceLocation::current()) const
|
||||
{
|
||||
expect_at(has_value(), caller, "Result::release_value() called on a Result that holds an error");
|
||||
return;
|
||||
}
|
||||
|
||||
void expect_release_value(const char* reason, SourceLocation caller = SourceLocation::current()) const
|
||||
{
|
||||
expect_at(has_value(), caller, reason);
|
||||
return;
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user