mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
refactor: Remove internal uses of the .first() and .matchCondition() helpers (#889)
This commit is contained in:
@@ -58,7 +58,7 @@ export default class CommentThread extends YTNode {
|
||||
throw new InnertubeError('Unexpected response.', response);
|
||||
|
||||
this.replies = this.#getPatchedReplies(response.on_response_received_endpoints_memo);
|
||||
this.#continuation = response.on_response_received_endpoints_memo.getType(ContinuationItem).first();
|
||||
this.#continuation = response.on_response_received_endpoints_memo.getType(ContinuationItem)[0];
|
||||
|
||||
return this;
|
||||
}
|
||||
@@ -87,7 +87,7 @@ export default class CommentThread extends YTNode {
|
||||
throw new InnertubeError('Unexpected response.', response);
|
||||
|
||||
this.replies = this.#getPatchedReplies(response.on_response_received_endpoints_memo);
|
||||
this.#continuation = response.on_response_received_endpoints_memo.getType(ContinuationItem).first();
|
||||
this.#continuation = response.on_response_received_endpoints_memo.getType(ContinuationItem)[0];
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user