From 2dbc2eadfe63df96eb3235d3c6a32f1b043384ed Mon Sep 17 00:00:00 2001 From: TonyRL Date: Tue, 7 Jul 2026 20:49:57 +0800 Subject: [PATCH] style: fix eslint/no-constant-binary-expression --- lib/routes/telegram/channel-media.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/telegram/channel-media.ts b/lib/routes/telegram/channel-media.ts index ba2237ecf..c4f8bccdd 100644 --- a/lib/routes/telegram/channel-media.ts +++ b/lib/routes/telegram/channel-media.ts @@ -73,7 +73,7 @@ function chooseLargestThumb(thumbs: Api.TypePhotoSize[]) { } export async function* streamThumbnail(client: TelegramClient, doc: Api.Document) { - if (doc.thumbs?.length ?? 0 > 0) { + if ((doc.thumbs?.length ?? 0) > 0) { const size = chooseLargestThumb(doc.thumbs!); if (size instanceof Api.PhotoCachedSize || size instanceof Api.PhotoStrippedSize) { yield ExpandInlineBytes(size.bytes);