mirror of https://github.com/status-im/web3.js.git
special logs will never be nulls, so there is no reason to check for null value
This commit is contained in:
parent
66f1deff38
commit
03ae21bd77
|
@ -2689,10 +2689,6 @@ var outputBlockFormatter = function(block) {
|
|||
* @returns {Object} log
|
||||
*/
|
||||
var outputLogFormatter = function(log) {
|
||||
if (log === null) { // 'pending' && 'latest' filters are nulls
|
||||
return null;
|
||||
}
|
||||
|
||||
if(log.blockNumber !== null)
|
||||
log.blockNumber = utils.toDecimal(log.blockNumber);
|
||||
if(log.transactionIndex !== null)
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2689,10 +2689,6 @@ var outputBlockFormatter = function(block) {
|
|||
* @returns {Object} log
|
||||
*/
|
||||
var outputLogFormatter = function(log) {
|
||||
if (log === null) { // 'pending' && 'latest' filters are nulls
|
||||
return null;
|
||||
}
|
||||
|
||||
if(log.blockNumber !== null)
|
||||
log.blockNumber = utils.toDecimal(log.blockNumber);
|
||||
if(log.transactionIndex !== null)
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -138,10 +138,6 @@ var outputBlockFormatter = function(block) {
|
|||
* @returns {Object} log
|
||||
*/
|
||||
var outputLogFormatter = function(log) {
|
||||
if (log === null) { // 'pending' && 'latest' filters are nulls
|
||||
return null;
|
||||
}
|
||||
|
||||
if(log.blockNumber !== null)
|
||||
log.blockNumber = utils.toDecimal(log.blockNumber);
|
||||
if(log.transactionIndex !== null)
|
||||
|
|
Loading…
Reference in New Issue