MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / nonEmptyString

Function nonEmptyString

packages/core/sdk/src/migration-spec.ts:1254–1257  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

1252};
1253
1254const nonEmptyString = (value: string | null | undefined): string | null => {
1255 const trimmed = value?.trim();
1256 return trimmed ? trimmed : null;
1257};
1258
1259/** True when the URL has no meaningful path — a bare origin like
1260 * `https://login.microsoftonline.com`. A bare origin is never a usable

Callers 2

planMigrationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected