MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / splitEnvList

Function splitEnvList

common/src/util/analytics-sampling.ts:59–66  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

57}
58
59function splitEnvList(value: string | undefined): Set<string> {
60 return new Set(
61 (value ?? '')
62 .split(',')
63 .map((item) => item.trim())
64 .filter(Boolean),
65 )
66}
67
68function isTruthyEnv(value: string | undefined): boolean {
69 return value === '1' || value === 'true' || value === 'yes'

Callers 1

isFullTelemetryEnabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected