MCPcopy
hub / github.com/SamKirkland/FTP-Deploy-Action / optionalString

Function optionalString

src/parse.ts:1–7  ·  view source on GitHub ↗
(rawValue: string)

Source from the content-addressed store, hash-verified

1export function optionalString(rawValue: string): string | undefined {
2 if (rawValue.length === 0) {
3 return undefined;
4 }
5
6 return rawValue;
7}
8
9export function optionalBoolean(argumentName: string, rawValue: string): boolean | undefined {
10 if (rawValue.length === 0) {

Callers 2

runDeploymentFunction · 0.90
main.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected