MCPcopy Create free account
hub / github.com/chartbrew/chartbrew / parseStrictBoolean

Function parseStrictBoolean

server/modules/outboundTargetPolicy.js:86–94  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

84}
85
86function parseStrictBoolean(value) {
87 if (value === undefined || value === null || value === "") return null;
88
89 const normalized = String(value).trim().toLowerCase();
90 if (normalized === "true" || normalized === "1") return true;
91 if (normalized === "false" || normalized === "0") return false;
92
93 return null;
94}
95
96let loggedInvalidAllowPrivateValue = false;
97

Calls

no outgoing calls

Tested by

no test coverage detected