mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:10:43 +00:00
refactor(lint): enable map spread rule
This commit is contained in:
@@ -70,7 +70,7 @@ function fitTelegramCommandsWithinTextBudget(
|
||||
const description = truncateTelegramCommandText(command.description, descriptionCap);
|
||||
if (description !== command.description) {
|
||||
descriptionTrimmed = true;
|
||||
return { ...command, description };
|
||||
return Object.assign({}, command, { description });
|
||||
}
|
||||
return command;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user