From 3289a9388da60273587a60bf223a014edb66e97c Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 8 Jun 2016 13:31:15 -0700 Subject: [PATCH] minor. --- lib/bcoin/env.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/bcoin/env.js b/lib/bcoin/env.js index bf3412b8..12c9ed27 100644 --- a/lib/bcoin/env.js +++ b/lib/bcoin/env.js @@ -256,11 +256,13 @@ Environment.prototype.set = function set(options) { options.debugFile += '/debug.log'; } - this.prefix = options.prefix; + this.prefix = normalize(options.prefix); this.networkType = options.network; this.db = options.db; this.debugLogs = !!options.debug; - this.debugFile = options.debugFile; + this.debugFile = options.debugFile + ? normalize(options.debugFile) + : null; this.profile = options.profile; this.useWorkers = !!options.useWorkers; this.maxWorkers = options.maxWorkers;