assert() -> doAssert()

This commit is contained in:
Ștefan Talpalaru 2019-03-14 00:12:27 +01:00
parent dce00a6ff8
commit 2e858e6b9a
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ else:
copyMem(addr v[0], unsafeAddr data[0], sz)
template getImpl {.dirty.} =
assert key.len > 0
doAssert key.len > 0
var
errors: cstring
@ -185,7 +185,7 @@ proc getBytes*(db: RocksDBInstance, key: KeyValueType): RocksDBResult[seq[byte]]
getImpl
proc put*(db: RocksDBInstance, key, val: KeyValueType): RocksDBResult[void] =
assert key.len > 0
doAssert key.len > 0
var
errors: cstring
@ -207,7 +207,7 @@ proc del*(db: RocksDBInstance, key: KeyValueType): RocksDBResult[void] =
returnOk()
proc contains*(db: RocksDBInstance, key: KeyValueType): RocksDBResult[bool] =
assert key.len > 0
doAssert key.len > 0
var
errors: cstring