fix warning since nim 1.4.0

This commit is contained in:
Xie Yanbo 2021-02-08 17:06:50 +08:00
parent a6678b2688
commit 6cf9f7f938
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ proc execTool(args: varargs[string]): tuple[output: string, exitCode: int] =
quotedArgs.insert(tmpNimbleDir / "bin" / "leveldbtool")
quotedArgs = quotedArgs.map(proc (x: string): string = "\"" & x & "\"")
if not existsDir(tmpDbDir):
if not dirExists(tmpDbDir):
createDir(tmpDbDir)
let cmd = quotedArgs.join(" ")