mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-09 05:19:32 +08:00
chore: fix lint, and format after lint to catch reformats triggered by autofixes.
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user