about summary refs log tree commit diff stats
path: root/src/local/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-05 00:07:16 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-05 00:07:16 +0200
commitc06bc25969bc428c3b2a32ee87525737cb5fef9f (patch)
tree17a90ad69fb3ae89e8923021dca6cfc105809875 /src/local/client.nim
parent698b6002528750a7af0a0df9ccac8e05d6b923c8 (diff)
downloadchawan-c06bc25969bc428c3b2a32ee87525737cb5fef9f.tar.gz
Use isSome instead of isOk
no point in having identical overloads
Diffstat (limited to 'src/local/client.nim')
-rw-r--r--src/local/client.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/client.nim b/src/local/client.nim
index c08f88f6..9038488a 100644
--- a/src/local/client.nim
+++ b/src/local/client.nim
@@ -223,7 +223,7 @@ proc evalAction(client: Client; action: string; arg0: int32): EmptyPromise =
     client.jsctx.writeException(client.console.err)
   if JS_IsObject(ret):
     let maybep = fromJS[EmptyPromise](ctx, ret)
-    if maybep.isOk:
+    if maybep.isSome:
       p = maybep.get
   JS_FreeValue(ctx, ret)
   return p