fix(lint): satisfy biome
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ import JSON5 from 'json5';
|
|||||||
import kleur from 'kleur';
|
import kleur from 'kleur';
|
||||||
import { resolveCliInvocation } from './lib/cli-args.js';
|
import { resolveCliInvocation } from './lib/cli-args.js';
|
||||||
import { resolveCredentials } from './lib/cookies.js';
|
import { resolveCredentials } from './lib/cookies.js';
|
||||||
import { resolveEngineMode, shouldUseSweetistics, type EngineMode } from './lib/engine.js';
|
import { type EngineMode, resolveEngineMode, shouldUseSweetistics } from './lib/engine.js';
|
||||||
import { extractTweetId } from './lib/extract-tweet-id.js';
|
import { extractTweetId } from './lib/extract-tweet-id.js';
|
||||||
import { SweetisticsClient } from './lib/sweetistics-client.js';
|
import { SweetisticsClient } from './lib/sweetistics-client.js';
|
||||||
import { type TweetData, TwitterClient } from './lib/twitter-client.js';
|
import { type TweetData, TwitterClient } from './lib/twitter-client.js';
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ export function resolveEngineMode(value?: string): EngineMode {
|
|||||||
return 'auto';
|
return 'auto';
|
||||||
}
|
}
|
||||||
|
|
||||||
export function shouldUseSweetistics(engine: EngineMode, hasApiKey: boolean): boolean {
|
export function shouldUseSweetistics(engine: EngineMode, _hasApiKey: boolean): boolean {
|
||||||
if (engine === 'sweetistics') return true;
|
if (engine === 'sweetistics') return true;
|
||||||
if (engine === 'graphql') return false;
|
if (engine === 'graphql') return false;
|
||||||
return false; // auto: GraphQL primary, Sweetistics only as fallback
|
return false; // auto: GraphQL primary, Sweetistics only as fallback
|
||||||
|
|||||||
Reference in New Issue
Block a user