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

Function parsePositiveInt

src/utils/config-store.ts:117–122  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

115}
116
117function parsePositiveInt(value: string | undefined): number | undefined {
118 if (!value) return undefined;
119 const parsed = Number(value);
120 if (!Number.isFinite(parsed) || parsed <= 0) return undefined;
121 return Math.floor(parsed);
122}
123
124function parseNonNegativeInt(value: string | undefined): number | undefined {
125 if (!value) return undefined;

Callers 1

readEnvConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected