From 67f2f79961e052ee7c812d79a224daf6585ab63a Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Wed, 24 May 2023 09:49:26 +0200 Subject: [PATCH] refactor: minor example simplification Signed-off-by: Christopher Arndt --- examples/jacket_list_all_properties.nim | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/jacket_list_all_properties.nim b/examples/jacket_list_all_properties.nim index 325847a..05cf9ee 100644 --- a/examples/jacket_list_all_properties.nim +++ b/examples/jacket_list_all_properties.nim @@ -2,7 +2,6 @@ import std/[logging, strformat] import jacket var - jclient: ClientP status: cint descs: ptr UncheckedArray[Description] @@ -15,7 +14,7 @@ proc errorCb(msg: cstring) {.cdecl.} = addHandler(log) setErrorFunction(errorCb) -jclient = clientOpen("jacket_property", NullOption.ord, status.addr) +let jclient = clientOpen("jacket_property", NullOption.ord, status.addr) debug "JACK server status: " & $status if jclient == nil: @@ -25,10 +24,8 @@ if jclient == nil: let numDescs = getAllProperties(descs) if numDescs != -1: - var desc: Description - for i in 0.. 0: