mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 21:52:56 +00:00
chore: Lint extensions folder.
This commit is contained in:
@@ -29,8 +29,12 @@ const pinActions = new Set(["pinMessage", "unpinMessage", "listPins"]);
|
||||
|
||||
function readRoomId(params: Record<string, unknown>, required = true): string {
|
||||
const direct = readStringParam(params, "roomId") ?? readStringParam(params, "channelId");
|
||||
if (direct) return direct;
|
||||
if (!required) return readStringParam(params, "to") ?? "";
|
||||
if (direct) {
|
||||
return direct;
|
||||
}
|
||||
if (!required) {
|
||||
return readStringParam(params, "to") ?? "";
|
||||
}
|
||||
return readStringParam(params, "to", { required: true });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user