fix: add braces to satisfy eslint curly rule

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Aaron Aronchick 2026-03-05 01:17:53 +00:00
parent 59ec3924d2
commit ece6dccd50

View File

@ -251,9 +251,13 @@ function loadSchemaWithPlugins(): ConfigSchemaResponse {
*/
function validateTailscaleBindCompat(config: OpenClawConfig): string | null {
const tailscaleMode = config.gateway?.tailscale?.mode;
if (tailscaleMode !== "serve" && tailscaleMode !== "funnel") return null;
if (tailscaleMode !== "serve" && tailscaleMode !== "funnel") {
return null;
}
const bind = config.gateway?.bind ?? "loopback";
if (bind === "loopback") return null;
if (bind === "loopback") {
return null;
}
return `gateway.tailscale.mode="${tailscaleMode}" requires gateway.bind="loopback", but gateway.bind="${bind}". Change gateway.bind to "loopback" or set gateway.tailscale.mode to "off".`;
}