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:
Nora
2026-03-10 05:18:46 +00:00
committed by Vincent Koc
parent d8e1aff7ee
commit d1653b7750

View File

@@ -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);
}
}
}