Skip to content

Commit

Permalink
fix(testpeer): remove superfluous write
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahhoward committed May 25, 2023
1 parent bb8aefc commit e527ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/internal/itest/testpeer/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ func MockIpfsHandler(ctx context.Context, lsys linking.LinkSystem) func(http.Res

err = progress.WalkAdv(rootNode, sel, visitNoop)
if err != nil {
http.Error(res, fmt.Sprintf("Failed to traverse from root node: %v", err), http.StatusInternalServerError)
// if we loaded the first block, we can't write headers any more
return
}
}
Expand Down

0 comments on commit e527ef4

Please sign in to comment.