mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 15:54:58 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -24,7 +24,9 @@ export function applyTargetToParams(params: {
|
||||
throw new Error("Use `target` for actions that accept a destination.");
|
||||
}
|
||||
|
||||
if (!target) return;
|
||||
if (!target) {
|
||||
return;
|
||||
}
|
||||
if (mode === "channelId") {
|
||||
params.args.channelId = target;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user