mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 08:07:40 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -18,7 +18,9 @@ export async function modelsAliasesListCommand(
|
||||
const aliases = Object.entries(models).reduce<Record<string, string>>(
|
||||
(acc, [modelKey, entry]) => {
|
||||
const alias = entry?.alias?.trim();
|
||||
if (alias) acc[alias] = modelKey;
|
||||
if (alias) {
|
||||
acc[alias] = modelKey;
|
||||
}
|
||||
return acc;
|
||||
},
|
||||
{},
|
||||
|
||||
Reference in New Issue
Block a user