mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 06:24:34 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -8,7 +8,9 @@ const DEFAULT_GOOGLE_AUDIO_PROMPT = "Transcribe the audio.";
|
||||
|
||||
function resolveModel(model?: string): string {
|
||||
const trimmed = model?.trim();
|
||||
if (!trimmed) return DEFAULT_GOOGLE_AUDIO_MODEL;
|
||||
if (!trimmed) {
|
||||
return DEFAULT_GOOGLE_AUDIO_MODEL;
|
||||
}
|
||||
return normalizeGoogleModelId(trimmed);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user