mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 15:01:41 +03:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
+3
-1
@@ -7,7 +7,9 @@ const subsystemPrefixRe = /^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;
|
||||
|
||||
function splitSubsystem(message: string) {
|
||||
const match = message.match(subsystemPrefixRe);
|
||||
if (!match) return null;
|
||||
if (!match) {
|
||||
return null;
|
||||
}
|
||||
const [, subsystem, rest] = match;
|
||||
return { subsystem, rest };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user