Skip to content

Commit

Permalink
fix: parse undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
couriourc committed Sep 8, 2024
1 parent 4d0dbc6 commit 4fd96da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const parsedConfig = yaml.parse<IConfigParameter>(await safeRun(() => {
// S 相关配置
const choice = (cmd: any, parsed: any, defaultConfig: any) => {
return cmd ??
_.isNull(parsed) ?
(_.isUndefined(parsed) || _.isNull(parsed)) ?
defaultConfig :
parsed;
};
Expand Down

0 comments on commit 4fd96da

Please sign in to comment.