MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / normalizeCheckResult

Method normalizeCheckResult

src/common/configParser.ts:122–130  ·  view source on GitHub ↗
(result: boolean | CheckResult)

Source from the content-addressed store, hash-verified

120 }
121
122 private normalizeCheckResult(result: boolean | CheckResult): CheckResult {
123 if (typeof result === "boolean") {
124 if (result) {
125 return { canSave: true, canEnable: true };
126 }
127 return { canSave: false, canEnable: false };
128 }
129 return result;
130 }
131
132 load(): boolean {
133 let status = true;

Callers 2

setRuleMethod · 0.95
checkStatusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected