Compare commits
2 Commits
37547ec640
...
cf8a8c145a
Author | SHA1 | Date | |
---|---|---|---|
cf8a8c145a | |||
de25338d6c |
@ -143,7 +143,6 @@ static Result<void> load_service(StringView path)
|
||||
}
|
||||
|
||||
fprintf(g_init_log, "[init] skipping unknown entry name %s\n", parts[0].chars());
|
||||
continue;
|
||||
}
|
||||
|
||||
if (service.name.is_empty())
|
||||
|
@ -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