mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 10:47:41 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -12,8 +12,12 @@ export function resolveTelegramVoiceDecision(opts: {
|
||||
contentType?: string | null;
|
||||
fileName?: string | null;
|
||||
}): { useVoice: boolean; reason?: string } {
|
||||
if (!opts.wantsVoice) return { useVoice: false };
|
||||
if (isTelegramVoiceCompatible(opts)) return { useVoice: true };
|
||||
if (!opts.wantsVoice) {
|
||||
return { useVoice: false };
|
||||
}
|
||||
if (isTelegramVoiceCompatible(opts)) {
|
||||
return { useVoice: true };
|
||||
}
|
||||
const contentType = opts.contentType ?? "unknown";
|
||||
const fileName = opts.fileName ?? "unknown";
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user