From f192dab0a67ddf090523eeabaf54b28965909a09 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 11 Jan 2017 18:43:10 -0800 Subject: [PATCH] minor: lint. --- lib/btc/uri.js | 4 ---- lib/http/base.js | 3 +-- lib/http/server.js | 5 ++++- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/btc/uri.js b/lib/btc/uri.js index c0e68050..82f65696 100644 --- a/lib/btc/uri.js +++ b/lib/btc/uri.js @@ -270,10 +270,6 @@ function escape(str) { return str; } -function parseAmount(amount, size) { - return Amount.value(amount); -} - /* * Expose */ diff --git a/lib/http/base.js b/lib/http/base.js index d6e84be6..1fe7d056 100644 --- a/lib/http/base.js +++ b/lib/http/base.js @@ -239,11 +239,11 @@ HTTPBase.prototype._close = function close(callback) { /** * Handle middleware stack. + * @private * @param {HTTPRequest} req * @param {HTTPResponse} res * @param {Function} send * @returns {Promise} - * @private */ HTTPBase.prototype.handleStack = function handleStack(req, res, send, callback) { @@ -452,7 +452,6 @@ function Route(ctx, path, callback) { Route.prototype.compile = function compile() { var path = this.path; var map = this.map; - var regex; if (this.compiled) return; diff --git a/lib/http/server.js b/lib/http/server.js index 27ef088f..0379f41e 100644 --- a/lib/http/server.js +++ b/lib/http/server.js @@ -237,6 +237,9 @@ HTTPServer.prototype._init = function _init() { if (censored.mnemonic != null) censored.mnemonic = ''; + if (censored.token != null) + censored.token = ''; + this.logger.debug(censored); if (params.id) { @@ -585,7 +588,7 @@ HTTPServer.prototype._init = function _init() { } if (cmd.method !== 'getblocktemplate' && cmd.method !== 'getwork') { - this.logger.debug('Handling RPC call : %s.', cmd.method); + this.logger.debug('Handling RPC call: %s.', cmd.method); if (cmd.method !== 'submitblock') this.logger.debug(cmd.params); }