mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 02:08:27 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -21,7 +21,9 @@ function buildLabel(beacon: GatewayBonjourBeacon): string {
|
||||
|
||||
function ensureWsUrl(value: string): string {
|
||||
const trimmed = value.trim();
|
||||
if (!trimmed) return DEFAULT_GATEWAY_URL;
|
||||
if (!trimmed) {
|
||||
return DEFAULT_GATEWAY_URL;
|
||||
}
|
||||
return trimmed;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user