Compare commits

..

2 Commits

Author SHA1 Message Date
cf8a8c145a
init: Remove redundant continue statement
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-23 21:15:23 +02:00
de25338d6c
libluna: Remove redundant return statements in Result<void> 2023-04-23 21:15:00 +02:00
2 changed files with 0 additions and 5 deletions

View File

@ -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())

View File

@ -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: