MCPcopy Create free account
hub / github.com/massCodeIO/massCode / formatHostPort

Function formatHostPort

src/main/ipc/handlers/http.ts:269–275  ·  view source on GitHub ↗
(source: Record<string, unknown>)

Source from the content-addressed store, hash-verified

267}
268
269function formatHostPort(source: Record<string, unknown>): string | undefined {
270 const address = stringValue(source.address)
271 const port = numberValue(source.port)
272 if (!address)
273 return undefined
274 return port === undefined ? address : `${address}:${port}`
275}
276
277function formatDetailedRequestError(source: unknown): string | undefined {
278 const record = asRecord(source)

Callers 1

Calls 2

stringValueFunction · 0.85
numberValueFunction · 0.85

Tested by

no test coverage detected