Skip to content

Commit

Permalink
fix: chain: remove unnecessary error check (#12195)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsgerse authored Jul 8, 2024
1 parent 6e96f4f commit 5d0db70
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions node/impl/full/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,6 @@ func (a ChainAPI) ChainExportRangeInternal(ctx context.Context, head, tail types
}

fileName := filepath.Join(a.Repo.Path(), fmt.Sprintf("snapshot_%d_%d_%d.car", tailTs.Height(), headTs.Height(), time.Now().Unix()))
if err != nil {
return err
}

f, err := os.Create(fileName)
if err != nil {
return err
Expand Down

0 comments on commit 5d0db70

Please sign in to comment.