MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / removeRegistryAtPathIfOwned

Function removeRegistryAtPathIfOwned

src/daemon/daemon-registry.ts:229–245  ·  view source on GitHub ↗
(
  registryPath: string,
  workspaceKey: string,
  options?: DaemonFileCleanupOptions,
)

Source from the content-addressed store, hash-verified

227}
228
229function removeRegistryAtPathIfOwned(
230 registryPath: string,
231 workspaceKey: string,
232 options?: DaemonFileCleanupOptions,
233): DaemonRegistryEntry | null {
234 const entry = readValidRegistryEntryAtPath(registryPath, workspaceKey);
235 if (!entry || !canRemoveRegistryEntry(entry, workspaceKey, options)) {
236 return null;
237 }
238
239 try {
240 unlinkSync(registryPath);
241 return entry;
242 } catch {
243 return null;
244 }
245}
246
247function listWorkspaceRegistryEntries(): DaemonRegistryEntry[] {
248 const entries: DaemonRegistryEntry[] = [];

Callers 1

Calls 2

canRemoveRegistryEntryFunction · 0.85

Tested by

no test coverage detected