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

Function parseBoolean

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

Source from the content-addressed store, hash-verified

107}
108
109function parseBoolean(value: string | undefined): boolean | undefined {
110 if (!value) return undefined;
111 const normalized = value.trim().toLowerCase();
112 if (['1', 'true', 'yes', 'on'].includes(normalized)) return true;
113 if (['0', 'false', 'no', 'off'].includes(normalized)) return false;
114 return undefined;
115}
116
117function parsePositiveInt(value: string | undefined): number | undefined {
118 if (!value) return undefined;

Callers 2

readEnvConfigFunction · 0.85
setBoolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected