Skip to content

Commit 4d3efa8

Browse files
committed
fix
1 parent c4996bd commit 4d3efa8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

internal/query/result.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,13 @@ func (r *streamResult) Close(ctx context.Context) (finalErr error) {
243243
case <-r.closed:
244244
return nil
245245
default:
246-
if r.stream != nil {
247-
if _, err := r.nextPart(ctx); err != nil {
248-
if xerrors.Is(err, io.EOF) {
249-
return nil
250-
}
251-
252-
return xerrors.WithStackTrace(err)
246+
_, err := r.nextPart(ctx)
247+
if err != nil {
248+
if xerrors.Is(err, io.EOF) {
249+
return nil
253250
}
251+
252+
return xerrors.WithStackTrace(err)
254253
}
255254
}
256255
}

0 commit comments

Comments
 (0)