Skip to content

Commit 834896a

Browse files
committed
chore: remove unneeded err-nil check
Signed-off-by: Donnie Adams <[email protected]>
1 parent f28f1cc commit 834896a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ func (r *Run) request(ctx context.Context, payload any) (err error) {
414414
}
415415
}
416416

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

0 commit comments

Comments
 (0)