Skip to content

Commit

Permalink
Filter out empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Jul 13, 2023
1 parent 440b2e4 commit 1ad8c65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/changedFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const getChangeTypeFiles = async ({
}): Promise<{paths: string; count: string}> => {
const files = [
...new Set(getChangeTypeFilesGenerator({inputs, changedFiles, changeTypes}))
]
].filter(Boolean)

if (inputs.json) {
return {
Expand Down Expand Up @@ -236,7 +236,7 @@ export const getAllChangeTypeFiles = async ({
}): Promise<{paths: string; count: string}> => {
const files = [
...new Set(getAllChangeTypeFilesGenerator({inputs, changedFiles}))
]
].filter(Boolean)

if (inputs.json) {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ export const getDirnameMaxDepth = ({
output = path.join(output, pathArr[i])
}

if (excludeCurrentDir && (output === '.' || output === '')) {
if (excludeCurrentDir && output === '.') {
return ''
}

Expand Down

0 comments on commit 1ad8c65

Please sign in to comment.