MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / normalizeDirection

Function normalizeDirection

scripts/bench-ci-compare.mjs:213–217  ·  view source on GitHub ↗
(raw, source)

Source from the content-addressed store, hash-verified

211}
212
213function normalizeDirection(raw, source) {
214 if (raw === undefined) return undefined;
215 if (raw === "higher_is_worse" || raw === "lower_is_worse") return raw;
216 throw new Error(`${source} must be "higher_is_worse" or "lower_is_worse"`);
217}
218
219function normalizeNumber(raw, source) {
220 const n = Number(raw);

Callers 2

normalizeDefaultRuleFunction · 0.85
normalizeOverrideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected