Remove unnecessary ts-expect-error
This commit is contained in:
committed by
GitHub
parent
560dfd3763
commit
f79f4e8f25
@ -229,7 +229,6 @@ export default class Helpers {
|
|||||||
rest_total_hits_as_int: params.rest_total_hits_as_int,
|
rest_total_hits_as_int: params.rest_total_hits_as_int,
|
||||||
scroll_id
|
scroll_id
|
||||||
}, options as TransportRequestOptionsWithMeta)
|
}, options as TransportRequestOptionsWithMeta)
|
||||||
// @ts-expect-error
|
|
||||||
response = r as TransportResult<T.ScrollResponse<TDocument, TAggregations>, unknown>
|
response = r as TransportResult<T.ScrollResponse<TDocument, TAggregations>, unknown>
|
||||||
assert(response !== undefined, 'The response is undefined, please file a bug report')
|
assert(response !== undefined, 'The response is undefined, please file a bug report')
|
||||||
if (response.statusCode !== 429) break
|
if (response.statusCode !== 429) break
|
||||||
|
|||||||
Reference in New Issue
Block a user