mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 09:11:12 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -11,8 +11,12 @@ export function isVoiceCompatibleAudio(opts: {
|
||||
return true;
|
||||
}
|
||||
const fileName = opts.fileName?.trim();
|
||||
if (!fileName) return false;
|
||||
if (!fileName) {
|
||||
return false;
|
||||
}
|
||||
const ext = getFileExtension(fileName);
|
||||
if (!ext) return false;
|
||||
if (!ext) {
|
||||
return false;
|
||||
}
|
||||
return VOICE_AUDIO_EXTENSIONS.has(ext);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user