From 2522e3586a7331ad62d3126bfcfec69b599ad4e8 Mon Sep 17 00:00:00 2001 From: Giovanni Date: Wed, 5 Sep 2018 15:23:40 +0900 Subject: [PATCH] new nim compiler isNil invalid use fix --- private/connection.nim | 2 +- rethinkdb.nimble | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/private/connection.nim b/private/connection.nim index bf7a3ed..7add712 100644 --- a/private/connection.nim +++ b/private/connection.nim @@ -122,7 +122,7 @@ proc newRethinkClient*(address = "127.0.0.1", port = Port(28015), db: string = " result.sockConnected = false result.queryToken = 0 - if not db.isNil and db != "": + if db != "": result.use(db) when not compileOption("threads"): proc handshake(r: RethinkClient) {.async.} = diff --git a/rethinkdb.nimble b/rethinkdb.nimble index 89179b1..bd6e1c5 100644 --- a/rethinkdb.nimble +++ b/rethinkdb.nimble @@ -1,4 +1,4 @@ -version = "0.2.3.3" +version = "0.2.3.4" author = "Huy Doan" description = "RethinkDB driver for Nim" license = "MIT"