mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
Chess: Slightly improve error propagation during startup
This commit is contained in:
parent
0fe29a48ad
commit
449911c286
4 changed files with 14 additions and 15 deletions
|
@ -12,14 +12,6 @@
|
|||
|
||||
namespace Chess::UCI {
|
||||
|
||||
Endpoint::Endpoint(NonnullOwnPtr<Core::File> in, NonnullOwnPtr<Core::File> out)
|
||||
: m_in_fd(in->fd())
|
||||
, m_in(Core::BufferedFile::create(move(in)).release_value_but_fixme_should_propagate_errors())
|
||||
, m_out(move(out))
|
||||
{
|
||||
set_in_notifier();
|
||||
}
|
||||
|
||||
void Endpoint::send_command(Command const& command)
|
||||
{
|
||||
auto command_string = command.to_string().release_value_but_fixme_should_propagate_errors();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue