Skip to content

Commit 626c96f

Browse files
committed
fix: remove duplicate error check
1 parent 74d2adb commit 626c96f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/gen/genesis/miners.go

-3
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,6 @@ func SetupStorageMiners(ctx context.Context,
338338
if err != nil {
339339
return cid.Undef, fmt.Errorf("flushing vm: %w", err)
340340
}
341-
if err != nil {
342-
return cid.Undef, fmt.Errorf("flushing vm: %w", err)
343-
}
344341

345342
nst, err := tree.LoadState(ctx, cst, nh)
346343
if err != nil {

0 commit comments

Comments
 (0)