mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-21 22:21:33 +00:00
style(slack-stream): apply oxfmt formatting to dispatch.ts
One log line exceeded the print width and one deliverNormally call was split across lines where oxfmt prefers a single line.
This commit is contained in:
@@ -541,7 +541,9 @@ export async function dispatchPreparedSlackMessage(prepared: PreparedSlackMessag
|
||||
channel: message.channel,
|
||||
ts: streamMsgTs,
|
||||
});
|
||||
logVerbose(`slack-stream: deleted orphaned stream message ${streamMsgTs} after stop failure`);
|
||||
logVerbose(
|
||||
`slack-stream: deleted orphaned stream message ${streamMsgTs} after stop failure`,
|
||||
);
|
||||
orphanDeleted = true;
|
||||
} catch (deleteErr) {
|
||||
logVerbose(
|
||||
@@ -554,10 +556,7 @@ export async function dispatchPreparedSlackMessage(prepared: PreparedSlackMessag
|
||||
// Bind to a local const so TypeScript narrows away null before spread.
|
||||
const fallbackPayload = lastStreamPayload;
|
||||
if (orphanDeleted && fallbackPayload && streamedText) {
|
||||
await deliverNormally(
|
||||
{ ...fallbackPayload, text: streamedText },
|
||||
finalStream.threadTs,
|
||||
);
|
||||
await deliverNormally({ ...fallbackPayload, text: streamedText }, finalStream.threadTs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user