simplify assertion

This commit is contained in:
Daniel Barlow 2024-03-04 23:13:06 +00:00
parent ffe9603c39
commit 38ed91f641

View file

@ -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)))