From 0f0bd5d680a04ef0fa5695729d4860de25177099 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 28 Nov 2025 08:08:55 +0100 Subject: [PATCH] Style: satisfy Biome lint suggestions --- src/lib/twitter-client.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib/twitter-client.ts b/src/lib/twitter-client.ts index 2b80975..999ff7e 100644 --- a/src/lib/twitter-client.ts +++ b/src/lib/twitter-client.ts @@ -272,12 +272,9 @@ export class TwitterClient { } // Prefer direct tweetResult if present, otherwise search the conversation thread - let tweetResult = + const tweetResult = data.data?.tweetResult?.result ?? - this.findTweetInInstructions( - data.data?.threaded_conversation_with_injections_v2?.instructions, - tweetId, - ); + this.findTweetInInstructions(data.data?.threaded_conversation_with_injections_v2?.instructions, tweetId); if (!tweetResult) { return {