mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-09 07:52:52 +00:00
chore(lint): enable readability lint rules
This commit is contained in:
@@ -85,7 +85,7 @@ function resolveGatewayPortFallback(): Promise<number> {
|
||||
|
||||
async function assertUnmanagedGatewayRestartEnabled(port: number): Promise<void> {
|
||||
const cfg = await readBestEffortConfig().catch(() => undefined);
|
||||
const tlsEnabled = !!cfg?.gateway?.tls?.enabled;
|
||||
const tlsEnabled = Boolean(cfg?.gateway?.tls?.enabled);
|
||||
const scheme = tlsEnabled ? "wss" : "ws";
|
||||
const probe = await probeGateway({
|
||||
url: `${scheme}://127.0.0.1:${port}`,
|
||||
|
||||
@@ -154,10 +154,7 @@ function coerceStatusConfig(value: unknown): OpenClawConfig {
|
||||
|
||||
function hasOwnKey(value: unknown, key: string): boolean {
|
||||
return Boolean(
|
||||
value &&
|
||||
typeof value === "object" &&
|
||||
!Array.isArray(value) &&
|
||||
Object.prototype.hasOwnProperty.call(value, key),
|
||||
value && typeof value === "object" && !Array.isArray(value) && Object.hasOwn(value, key),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user