fix(lint): satisfy biome

This commit is contained in:
Peter Steinberger
2025-12-26 10:30:54 +01:00
parent 8b9072fa7e
commit 618d87ec72
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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