MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / ifNotInteger

Function ifNotInteger

source code/ink/warn.ts:5–11  ·  view source on GitHub ↗
(value: number | undefined, name: string)

Source from the content-addressed store, hash-verified

3import { logForDebugging } from '../utils/debug.js'
4
5export function ifNotInteger(value: number | undefined, name: string): void {
6 if (value === undefined) return
7 if (Number.isInteger(value)) return
8 logForDebugging(`${name} should be an integer, got ${value}`, {
9 level: 'warn',
10 })
11}

Callers

nothing calls this directly

Calls 1

logForDebuggingFunction · 0.85

Tested by

no test coverage detected