diff --git a/packages/core/src/cli/validate.ts b/packages/core/src/cli/validate.ts index bf91439fa..61243e684 100644 --- a/packages/core/src/cli/validate.ts +++ b/packages/core/src/cli/validate.ts @@ -156,7 +156,7 @@ function getUnsafeAllowKinds(unsafeAllow: string | undefined): ValidationError[' } function getReferenceBuildInfoDirsArray(referenceBuildInfoDirs: string | undefined): string[] | undefined { - return referenceBuildInfoDirs !== undefined ? referenceBuildInfoDirs.split(/,+/) : undefined; + return referenceBuildInfoDirs?.split(/,+/); } export function withDefaults(parsedArgs: minimist.ParsedArgs): Required {