Skip to content

Commit

Permalink
Update packages/core/src/cli/validate.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Hadrien Croubois <[email protected]>
  • Loading branch information
ericglau and Amxx authored Aug 21, 2024
1 parent 735805b commit 6b7b48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/cli/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ValidateUpgradeSafetyOptions> {
Expand Down

0 comments on commit 6b7b48d

Please sign in to comment.