diff --git a/src/bin/Net.hx b/src/bin/Net.hx index ebeef33..4a16287 100644 --- a/src/bin/Net.hx +++ b/src/bin/Net.hx @@ -80,14 +80,9 @@ class Net extends CLIBase { kernel.net.Net.instance.ping(toID).handle(result -> { switch (result){ - case Success(acc): - if (acc) { - handle.writeLn("Ping succeeded"); - trigger(true); - } else { - handle.writeLn("Ping failed"); - trigger(false); - } + case Success(_): + handle.writeLn("Ping succeeded"); + trigger(true); case Failure(failure): handle.writeLn("Ping failed: " + failure); trigger(false);