mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 16:38:27 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -58,7 +58,9 @@ export async function notifyPairingApproved(params: {
|
||||
}): Promise<void> {
|
||||
// Extensions may provide adapter directly to bypass ESM module isolation
|
||||
const adapter = params.pairingAdapter ?? requirePairingAdapter(params.channelId);
|
||||
if (!adapter.notifyApproval) return;
|
||||
if (!adapter.notifyApproval) {
|
||||
return;
|
||||
}
|
||||
await adapter.notifyApproval({
|
||||
cfg: params.cfg,
|
||||
id: params.id,
|
||||
|
||||
Reference in New Issue
Block a user