mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 17:28:28 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -74,7 +74,9 @@ export function resolveSessionKeyForRequest(opts: {
|
||||
const foundKey = Object.keys(sessionStore).find(
|
||||
(key) => sessionStore[key]?.sessionId === opts.sessionId,
|
||||
);
|
||||
if (foundKey) sessionKey = foundKey;
|
||||
if (foundKey) {
|
||||
sessionKey = foundKey;
|
||||
}
|
||||
}
|
||||
|
||||
return { sessionKey, sessionStore, storePath };
|
||||
|
||||
Reference in New Issue
Block a user