Skip to content

Commit 2dbc2ea

Browse files
committed
style: fix eslint/no-constant-binary-expression
1 parent c7a6e6e commit 2dbc2ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/routes/telegram/channel-media.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function chooseLargestThumb(thumbs: Api.TypePhotoSize[]) {
7373
}
7474

7575
export async function* streamThumbnail(client: TelegramClient, doc: Api.Document) {
76-
if (doc.thumbs?.length ?? 0 > 0) {
76+
if ((doc.thumbs?.length ?? 0) > 0) {
7777
const size = chooseLargestThumb(doc.thumbs!);
7878
if (size instanceof Api.PhotoCachedSize || size instanceof Api.PhotoStrippedSize) {
7979
yield ExpandInlineBytes(size.bytes);

0 commit comments

Comments
 (0)