Skip to content

Commit

Permalink
chore: redundant case
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz committed Jul 24, 2024
1 parent 40cb711 commit b9b7e16
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fetch/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,7 @@ func (f *Fetcher) FetchGenesisData() error {
txResults[txIndex] = result
}

if err := f.writeBatch([]*bft_types.Block{block}, [][]*bft_types.TxResult{txResults}, 0, 1); err != nil {
return err
}

return nil
return f.writeBatch([]*bft_types.Block{block}, [][]*bft_types.TxResult{txResults}, 0, 1)
}

// FetchChainData starts the fetching process that indexes
Expand Down

0 comments on commit b9b7e16

Please sign in to comment.