mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 08:06:09 +00:00
Shell: Replace Result<T, E> use with ErrorOr<T>
This commit is contained in:
@@ -603,8 +603,7 @@ RefPtr<Job> Shell::run_command(const AST::Command& command)
|
||||
auto resolve_redirection = [&](auto& redirection) -> IterationDecision {
|
||||
auto rewiring_result = redirection.apply();
|
||||
if (rewiring_result.is_error()) {
|
||||
if (!rewiring_result.error().is_empty())
|
||||
warnln("error: {}", rewiring_result.error());
|
||||
warnln("error: {}", rewiring_result.error());
|
||||
return IterationDecision::Break;
|
||||
}
|
||||
auto& rewiring = rewiring_result.value();
|
||||
|
||||
Reference in New Issue
Block a user