MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / entryMatchesCleanupTarget

Function entryMatchesCleanupTarget

src/daemon/daemon-registry.ts:193–205  ·  view source on GitHub ↗
(
  entry: DaemonRegistryEntry,
  workspaceKey: string,
  options?: DaemonFileCleanupOptions,
)

Source from the content-addressed store, hash-verified

191}
192
193function entryMatchesCleanupTarget(
194 entry: DaemonRegistryEntry,
195 workspaceKey: string,
196 options?: DaemonFileCleanupOptions,
197): boolean {
198 if (entry.workspaceKey !== workspaceKey) {
199 return false;
200 }
201 if (options?.socketPath && entry.socketPath !== options.socketPath) {
202 return false;
203 }
204 return true;
205}
206
207function canRemoveRegistryEntry(
208 entry: DaemonRegistryEntry,

Callers 1

canRemoveRegistryEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected