minor: lint.

This commit is contained in:
Christopher Jeffrey 2017-03-12 10:22:29 -07:00
parent eb601eece6
commit c71039d87c
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 2 additions and 3 deletions

View File

@ -416,7 +416,7 @@ CPUMiner.prototype.sendStatus = function sendStatus(job, nonce) {
attempt.height,
tip);
this.emit('status', job, hash, hashrate);
this.emit('status', job, hashes, hashrate);
};
/**

View File

@ -443,14 +443,13 @@ Logger.prototype.writeStream = function writeStream(level, module, args) {
var name = Logger.prefixByVal[level];
var stream = this.stream;
var msg = '';
var prefix;
assert(name, 'Invalid log level.');
if (!stream)
return;
msg += '['
msg += '[';
msg += name;
msg += ':' + util.date();
msg += '] ';