Skip to content

Commit

Permalink
Don't validate undefined option values
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoree committed Jan 3, 2024
1 parent 4c5492c commit 468c73d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/clide-js/src/core/options/validate-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export function validateOptionType(
name: string,
type: OptionType,
): void {
if (value === undefined) {
return;
}

switch (type) {
case 'string':
case 'secret':
Expand Down

0 comments on commit 468c73d

Please sign in to comment.