mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 14:54:31 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -5,7 +5,9 @@ export function normalizePluginHttpPath(
|
||||
const trimmed = path?.trim();
|
||||
if (!trimmed) {
|
||||
const fallbackTrimmed = fallback?.trim();
|
||||
if (!fallbackTrimmed) return null;
|
||||
if (!fallbackTrimmed) {
|
||||
return null;
|
||||
}
|
||||
return fallbackTrimmed.startsWith("/") ? fallbackTrimmed : `/${fallbackTrimmed}`;
|
||||
}
|
||||
return trimmed.startsWith("/") ? trimmed : `/${trimmed}`;
|
||||
|
||||
Reference in New Issue
Block a user