Fix this after prettier

This commit is contained in:
dangered wolf 2023-11-10 03:30:06 -05:00
parent 822a744cc5
commit 7b4f56f90d
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -16,9 +16,9 @@ export const isGraphQLTweet = (response: unknown): response is GraphQLTweet => {
return ( return (
typeof response === 'object' && typeof response === 'object' &&
response !== null && response !== null &&
// @ts-expect-error it's 6 am please let me sleep
(('__typename' in response && (('__typename' in response &&
(response.__typename === 'Tweet' || response.__typename === 'TweetWithVisibilityResults')) || (response.__typename === 'Tweet' || response.__typename === 'TweetWithVisibilityResults')) ||
// @ts-expect-error it's 6 am please let me sleep
('legacy' in response && response.legacy?.full_text)) ('legacy' in response && response.legacy?.full_text))
); );
}; };