Skip to content

Commit

Permalink
chore: remove unneeded err-nil check
Browse files Browse the repository at this point in the history
Signed-off-by: Donnie Adams <[email protected]>
  • Loading branch information
thedadams committed Feb 11, 2025
1 parent f28f1cc commit 834896a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func (r *Run) request(ctx context.Context, payload any) (err error) {
}
}

if err != nil && !errors.Is(err, io.EOF) {
if !errors.Is(err, io.EOF) {
slog.Debug("failed to read events from response", "error", err)
r.err = fmt.Errorf("failed to read events: %w", err)
}
Expand Down

0 comments on commit 834896a

Please sign in to comment.