From 8e372d5c67f148be288bb0485f2c70ec43fbecd0 Mon Sep 17 00:00:00 2001 From: LuanRT Date: Sun, 1 Oct 2023 23:39:54 -0300 Subject: [PATCH] fix(Feed): Do not throw when multiple continuations are present --- src/core/mixins/Feed.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/mixins/Feed.ts b/src/core/mixins/Feed.ts index ec4d1b9e3..26daa3c7c 100644 --- a/src/core/mixins/Feed.ts +++ b/src/core/mixins/Feed.ts @@ -185,10 +185,8 @@ export default class Feed { */ async getContinuationData(): Promise { if (this.#continuation) { - if (this.#continuation.length > 1) - throw new InnertubeError('There are too many continuations, you\'ll need to find the correct one yourself in this.page'); if (this.#continuation.length === 0) - throw new InnertubeError('There are no continuations'); + throw new InnertubeError('There are no continuations.'); const response = await this.#continuation[0].endpoint.call(this.#actions, { parse: true });