mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
WebServer: Make ErrorOr unwrapping more idiomatic
This still not propagates errors properly, but is at least (more) consistent with the codebase.
This commit is contained in:
parent
022b416570
commit
e824a2da90
2 changed files with 6 additions and 7 deletions
|
@ -84,7 +84,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
return;
|
||||
}
|
||||
|
||||
VERIFY(!maybe_buffered_socket.value().set_blocking(true).is_error());
|
||||
// FIXME: Propagate errors
|
||||
MUST(maybe_buffered_socket.value().set_blocking(true));
|
||||
auto client = WebServer::Client::construct(maybe_buffered_socket.release_value(), server);
|
||||
client->start();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue