minor: lint.
This commit is contained in:
parent
1cda7cb702
commit
f192dab0a6
@ -270,10 +270,6 @@ function escape(str) {
|
||||
return str;
|
||||
}
|
||||
|
||||
function parseAmount(amount, size) {
|
||||
return Amount.value(amount);
|
||||
}
|
||||
|
||||
/*
|
||||
* Expose
|
||||
*/
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user