Add return for uniform code (not a bug, comestics)

It's not a bug, just to be better look.
This commit is contained in:
Learner
2018-02-04 14:05:35 +07:00
committed by GitHub
parent 11b1aa0ba8
commit 7ada474f67
+2 -2
View File
@@ -26,7 +26,7 @@ function Coin(data){
this.supportsAutoExchange = false;
this.niceHashDiff = 200000;
this.niceHashDiff = 400000;
this.getBlockHeaderByID = function(blockId, callback){
global.support.rpcDaemon('getblockheaderbyheight', {"height": blockId}, function (body) {
@@ -34,7 +34,7 @@ function Coin(data){
return callback(null, body.result.block_header);
} else {
console.error(JSON.stringify(body));
callback(true, body);
return callback(true, body);
}
});
};