From 8180599c047c4043e6a3842e4f88ec364dde704c Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Mon, 19 Dec 2022 22:57:41 +0100 Subject: [PATCH] Net cli update on new icmp --- src/bin/Net.hx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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);