mirror of
https://github.com/SamKirkland/FTP-Deploy-Action.git
synced 2025-08-14 14:05:05 +00:00
exclude defaults bug fix
This commit is contained in:
parent
93a0898871
commit
f55279346a
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -7984,6 +7984,9 @@ function optionalInt(argumentName, rawValue) {
|
||||
}
|
||||
exports.optionalInt = optionalInt;
|
||||
function optionalStringArray(argumentName, rawValue) {
|
||||
if (rawValue.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
if (typeof rawValue === "string") {
|
||||
throw new Error(`${argumentName}: invalid parameter - you provided "${rawValue}". This option expects an list in the EXACT format described in the readme`);
|
||||
}
|
||||
|
@ -91,6 +91,10 @@ export function optionalInt(argumentName: string, rawValue: string): number | un
|
||||
}
|
||||
|
||||
export function optionalStringArray(argumentName: string, rawValue: string[]): string[] | undefined {
|
||||
if (rawValue.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (typeof rawValue === "string") {
|
||||
throw new Error(`${argumentName}: invalid parameter - you provided "${rawValue}". This option expects an list in the EXACT format described in the readme`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user