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

Function trimOptionalString

apps/server/src/sourceControl/gitHubPullRequests.ts:49–52  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected