miner: make jshint happy.

This commit is contained in:
Christopher Jeffrey 2016-10-06 04:17:11 -07:00
parent 7506d89947
commit 985f4c95dc
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -207,23 +207,23 @@ Miner.prototype.stop = co(function* stop() {
* Wait for `done` event.
*/
Miner.prototype._onDone = co(function* _onDone() {
Miner.prototype._onDone = function _onDone() {
var self = this;
return new Promise(function(resolve, reject) {
self.once('done', resolve);
});
});
};
/**
* Wait for `stop` event.
*/
Miner.prototype._onStop = co(function* _onStop() {
Miner.prototype._onStop = function _onStop() {
var self = this;
return new Promise(function(resolve, reject) {
self.once('stop', resolve);
});
});
};
/**
* Create a block "attempt".