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

Function parseNonNegativeInt

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

Source from the content-addressed store, hash-verified

122}
123
124function parseNonNegativeInt(value: string | undefined): number | undefined {
125 if (!value) return undefined;
126 const parsed = Number(value);
127 if (!Number.isFinite(parsed) || parsed < 0) return undefined;
128 return Math.floor(parsed);
129}
130
131function parseEnabledWorkflows(value: string | undefined): string[] | undefined {
132 if (value == null) return undefined;

Callers 1

readEnvConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected