Skip to content

Commit

Permalink
Removed use of optional chaining for node 12 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
neogeek committed Feb 8, 2022
1 parent 4b9c0e6 commit 5f45e03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/doxdox-cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const overridePackage = String(
}

const paths = await globby(
(args.inputs?.length ? args.inputs : defaultPaths).concat(
(args.inputs.length ? args.inputs : defaultPaths).concat(
parseIgnoreConfig(overrideIgnore.split(',').join(EOL))
),
{
Expand Down
2 changes: 1 addition & 1 deletion packages/doxdox-parser-jsdoc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default async (cwd: string, path: string): Promise<File> => {
name: jsdoc.name,
fullName: `${jsdoc.name}(${params
.map(param => param.name)
.filter(name => !name?.match(/\./))
.filter(name => name && !name.match(/\./))
.join(', ')})`,
description: jsdoc.description || '',
params,
Expand Down

0 comments on commit 5f45e03

Please sign in to comment.