MCPcopy
hub / github.com/coder/mux / appendStorageKeySuffix

Function appendStorageKeySuffix

src/node/services/workspaceProjectRepos.ts:72–75  ·  view source on GitHub ↗
(storageKey: string, suffix: number)

Source from the content-addressed store, hash-verified

70}
71
72function appendStorageKeySuffix(storageKey: string, suffix: number): string {
73 assert(Number.isInteger(suffix) && suffix >= 2, "appendStorageKeySuffix: suffix must be >= 2");
74 return `${storageKey}-${suffix}`;
75}
76
77export function getWorkspaceProjectStorageKeys(
78 params: WorkspaceProjectStorageKeyParams

Callers 1

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected