chore: fix lint, and format after lint to catch reformats triggered by autofixes.

This commit is contained in:
cpojer
2026-02-01 13:18:42 +09:00
parent b4e2e746b3
commit b48d72a2b8
3 changed files with 7 additions and 3 deletions

View File

@@ -106,7 +106,7 @@
"ios:run": "bash -lc 'cd apps/ios && xcodegen generate && xcodebuild -project OpenClaw.xcodeproj -scheme OpenClaw -destination \"${IOS_DEST:-platform=iOS Simulator,name=iPhone 17}\" -configuration Debug build && xcrun simctl boot \"${IOS_SIM:-iPhone 17}\" || true && xcrun simctl launch booted ai.openclaw.ios'",
"lint": "oxlint --type-aware",
"lint:all": "pnpm lint && pnpm lint:swift",
"lint:fix": "pnpm format:fix && oxlint --type-aware --fix",
"lint:fix": "oxlint --type-aware --fix && pnpm format:fix",
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
"mac:open": "open dist/OpenClaw.app",
"mac:package": "bash scripts/package-mac-app.sh",

View File

@@ -58,7 +58,9 @@ function buildUserIdentitySection(ownerLine: string | undefined, isMinimal: bool
}
function buildTimeSection(params: { userTimezone?: string }) {
if (!params.userTimezone) return [];
if (!params.userTimezone) {
return [];
}
return [
"## Current Date & Time",
`Time zone: ${params.userTimezone}`,

View File

@@ -221,7 +221,9 @@ export function resolveAgentRoute(input: ResolveAgentRouteInput): ResolvedAgentR
: null;
if (parentPeer && parentPeer.id) {
const parentPeerMatch = bindings.find((b) => matchesPeer(b.match, parentPeer));
if (parentPeerMatch) return choose(parentPeerMatch.agentId, "binding.peer.parent");
if (parentPeerMatch) {
return choose(parentPeerMatch.agentId, "binding.peer.parent");
}
}
if (guildId) {