mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 18:46:39 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -15,7 +15,9 @@ export function onSessionTranscriptUpdate(listener: SessionTranscriptListener):
|
||||
|
||||
export function emitSessionTranscriptUpdate(sessionFile: string): void {
|
||||
const trimmed = sessionFile.trim();
|
||||
if (!trimmed) return;
|
||||
if (!trimmed) {
|
||||
return;
|
||||
}
|
||||
const update = { sessionFile: trimmed };
|
||||
for (const listener of SESSION_TRANSCRIPT_LISTENERS) {
|
||||
listener(update);
|
||||
|
||||
Reference in New Issue
Block a user