MCPcopy Create free account
hub / github.com/pingdotgg/t3code / trimOptionalString

Function trimOptionalString

apps/server/src/sourceControl/gitLabMergeRequests.ts:51–54  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

49});
50
51function trimOptionalString(value: string | null | undefined): string | null {
52 const trimmed = value?.trim() ?? "";
53 return trimmed.length > 0 ? trimmed : null;
54}
55
56function normalizeGitLabMergeRequestState(
57 state: string | null | undefined,

Callers 2

projectPathWithNamespaceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected