MCPcopy Create free account
hub / github.com/codeaashu/claude-code / _verifyPositiveIntegers

Method _verifyPositiveIntegers

src/server/web/public/terminal.js:6144–6146  ·  view source on GitHub ↗
(...e3)

Source from the content-addressed store, hash-verified

6142 return t2;
6143 }
6144 _verifyIntegers(...e3) {
6145 for (const t3 of e3) if (t3 === 1 / 0 || isNaN(t3) || t3 % 1 != 0) throw new Error("This API only accepts integers");
6146 }
6147 _verifyPositiveIntegers(...e3) {
6148 for (const t3 of e3) if (t3 && (t3 === 1 / 0 || isNaN(t3) || t3 % 1 != 0 || t3 < 0)) throw new Error("This API only accepts positive integers");
6149 }

Callers 1

registerDecorationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected