From 38ed91f641a1fb309b899ec58db35a484449ae9f Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Mon, 4 Mar 2024 23:13:06 +0000 Subject: [PATCH] simplify assertion --- pkgs/ifwait/ifwait.fnl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/ifwait/ifwait.fnl b/pkgs/ifwait/ifwait.fnl index 3d599f5..fae01a9 100644 --- a/pkgs/ifwait/ifwait.fnl +++ b/pkgs/ifwait/ifwait.fnl @@ -34,9 +34,8 @@ (os.exit 0)))) (let [parameters - (or - (parse-args arg) - (assert false (.. "Usage: " (. arg 0) " [-v] ifname [present|up|running]")))] + (assert (parse-args arg) + (.. "Usage: " (. arg 0) " [-v] ifname [present|up|running]"))] (when parameters.verbose (print (.. (. arg 0) ": waiting for " parameters.link " to be " parameters.expecting)))