MCPcopy Index your code
hub / github.com/anomalyco/opencode / assertNotSelf

Function assertNotSelf

packages/console/core/src/user.ts:17–20  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

15
16export namespace User {
17 const assertNotSelf = (id: string) => {
18 if (Actor.userID() !== id) return
19 throw new Error(`Expected not self actor, got self actor`)
20 }
21
22 export const list = fn(z.void(), () =>
23 Database.use((tx) =>

Callers 1

user.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected