From f0360cac6904d13fb3c739fcf937fc4cd949c4e3 Mon Sep 17 00:00:00 2001 From: LuanRT Date: Wed, 20 Oct 2021 02:51:21 -0300 Subject: [PATCH] format: rephrase comments --- lib/Constants.js | 3 ++- lib/Livechat.js | 8 +++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/Constants.js b/lib/Constants.js index 896e0c34..79fabad1 100644 --- a/lib/Constants.js +++ b/lib/Constants.js @@ -178,7 +178,8 @@ const formatVideoData = (data, context, desktop) => { return video_details; }; -const filters = (order) => { // TODO: Refactor this crazy thing +const filters = (order) => { + // TODO: Do this more efficiently switch (order) { case 'any,any,relevance': return 'EgIQAQ%3D%3D'; diff --git a/lib/Livechat.js b/lib/Livechat.js index 060fba16..57d1c5ac 100644 --- a/lib/Livechat.js +++ b/lib/Livechat.js @@ -24,7 +24,7 @@ class Livechat extends EventEmitter { enqueueActionGroup(group) { group.forEach((action) => { - if (!action.addChatItemAction) return; //TODO: handle different action types */ + if (!action.addChatItemAction) return; //TODO: handle different action types const message_content = action.addChatItemAction.item.liveChatTextMessageRenderer; if (!message_content) return; @@ -82,7 +82,7 @@ class Livechat extends EventEmitter { } }); - // How long we should wait to poll the chat again. + // How long we should wait to poll the chat again if (continuation_contents.liveChatContinuation.continuations[0].timedContinuationData) { this.poll_intervals_ms = continuation_contents.liveChatContinuation.continuations[0].timedContinuationData.timeoutMs; } else { @@ -134,6 +134,4 @@ class Livechat extends EventEmitter { this.running = false; clearTimeout(this.livechat_poller); } -} - -module.exports = Livechat; \ No newline at end of file +} \ No newline at end of file