minor: lint.

This commit is contained in:
Christopher Jeffrey 2017-01-11 18:43:10 -08:00
parent 1cda7cb702
commit f192dab0a6
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
3 changed files with 5 additions and 7 deletions

View File

@ -270,10 +270,6 @@ function escape(str) {
return str;
}
function parseAmount(amount, size) {
return Amount.value(amount);
}
/*
* Expose
*/

View File

@ -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;

View File

@ -237,6 +237,9 @@ HTTPServer.prototype._init = function _init() {
if (censored.mnemonic != null)
censored.mnemonic = '<redacted>';
if (censored.token != null)
censored.token = '<redacted>';
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);
}