mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 18:28:26 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -7,7 +7,9 @@ export function parseSessionLabel(raw: unknown): ParsedSessionLabel {
|
||||
return { ok: false, error: "invalid label: must be a string" };
|
||||
}
|
||||
const trimmed = raw.trim();
|
||||
if (!trimmed) return { ok: false, error: "invalid label: empty" };
|
||||
if (!trimmed) {
|
||||
return { ok: false, error: "invalid label: empty" };
|
||||
}
|
||||
if (trimmed.length > SESSION_LABEL_MAX_LENGTH) {
|
||||
return {
|
||||
ok: false,
|
||||
|
||||
Reference in New Issue
Block a user