Skip to content

Commit

Permalink
Update affected.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sharonamr committed Aug 12, 2024
1 parent e7cfbb1 commit 47fbd28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/affected/bin/affected.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const [parsedFlags, args] = flagsParser(supportedArgs, allArgs);
const base = parsedFlags['--base'];
console.log('affected args:', parsedFlags);

const ignoredFiles = glob.sync(parsedFlags['--ignore-pattern']);
const ignoredFiles = parsedFlags['--ignore-pattern'] ? glob.sync(parsedFlags['--ignore-pattern']) : [];
const affectedFiles = getAffectedFiles(base);

export const getFileContent = (filePath) => {
Expand Down

0 comments on commit 47fbd28

Please sign in to comment.