Skip to content

Commit

Permalink
Fix: check for nil err
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse committed Sep 3, 2024
1 parent 24dbe25 commit 7758212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethergo/backends/anvil/anvil.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func setupOtterscan(ctx context.Context, tb testing.TB, pool *dockertest.Pool, a
}
})
// since this is ran in a gofunc, context cancelation errors expected during pull, etc
if !errors.Is(err, context.Canceled) {
if err != nil && !errors.Is(err, context.Canceled) {
return "", fmt.Errorf("failed to run otterscan container: %w", err)

Check warning on line 249 in ethergo/backends/anvil/anvil.go

View check run for this annotation

Codecov / codecov/patch

ethergo/backends/anvil/anvil.go#L249

Added line #L249 was not covered by tests
}

Expand Down

0 comments on commit 7758212

Please sign in to comment.