mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 19:08:27 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -14,7 +14,9 @@ import { type AnyAgentTool, jsonResult, readStringParam } from "./common.js";
|
||||
import { callGatewayTool } from "./gateway.js";
|
||||
|
||||
function resolveBaseHashFromSnapshot(snapshot: unknown): string | undefined {
|
||||
if (!snapshot || typeof snapshot !== "object") return undefined;
|
||||
if (!snapshot || typeof snapshot !== "object") {
|
||||
return undefined;
|
||||
}
|
||||
const hashValue = (snapshot as { hash?: unknown }).hash;
|
||||
const rawValue = (snapshot as { raw?: unknown }).raw;
|
||||
const hash = resolveConfigSnapshotHash({
|
||||
|
||||
Reference in New Issue
Block a user