Skip to content

Commit

Permalink
fix: appease the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed Dec 20, 2024
1 parent 3d8326a commit ba0c45a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/indexer/transactionLogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (idx *Indexer) ParseTransactionLogs(
}

// if the contract is interesting but not found, throw an error to stop processing
if foundContracts == nil || len(foundContracts) == 0 {
if len(foundContracts) == 0 {
idx.Logger.Sugar().Errorw("No contract found for address", zap.String("hash", transaction.Hash.Value()))
return nil, NewIndexError(IndexError_FailedToFindContract, err).
WithMessage("No contract found for address").
Expand Down Expand Up @@ -184,7 +184,7 @@ func (idx *Indexer) DecodeLogWithAbi(
if err != nil {
return idx.DecodeLog(nil, lg)
}
if foundContracts == nil || len(foundContracts) == 0 {
if len(foundContracts) == 0 {
idx.Logger.Sugar().Errorw("No contract found for address", zap.String("address", logAddress.String()))
return idx.DecodeLog(nil, lg)
}
Expand Down

0 comments on commit ba0c45a

Please sign in to comment.