refactor: Remove internal uses of the .first() and .matchCondition() helpers (#889)

This commit is contained in:
absidue
2025-02-08 09:55:39 +01:00
committed by GitHub
parent d0d48bf525
commit 0e869020db
24 changed files with 66 additions and 66 deletions

View File

@@ -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;
}