From d91d1dda2ad1219b3b798eafc14151811ed9a1b3 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 28 Dec 2023 21:19:21 +0100 Subject: Compile with styleCheck:usages much better --- src/js/fromjs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/js/fromjs.nim') diff --git a/src/js/fromjs.nim b/src/js/fromjs.nim index bddaa2e1..2ffdb9e2 100644 --- a/src/js/fromjs.nim +++ b/src/js/fromjs.nim @@ -226,7 +226,7 @@ proc fromJSSeq[T](ctx: JSContext, val: JSValue): JSResult[seq[T]] = return err() defer: JS_FreeValue(ctx, valueVal) let genericRes = fromJS[typeof(s[0])](ctx, valueVal) - if genericRes.isnone: # exception + if genericRes.isNone: # exception return err() s.add(genericRes.get) return ok(s) -- cgit 1.4.1-2-gfad0