Skip to content

Commit

Permalink
fix unrelated lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jrr committed May 2, 2019
1 parent 12abd26 commit bdb0ea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jest-transform/src/ScriptTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,15 +573,15 @@ const calcIgnorePatternRegExp = (config: Config.ProjectConfig) => {
!config.transformIgnorePatterns ||
config.transformIgnorePatterns.length === 0
) {
return;
return undefined;
}

return new RegExp(config.transformIgnorePatterns.join('|'));
};

const calcTransformRegExp = (config: Config.ProjectConfig) => {
if (!config.transform.length) {
return;
return undefined;
}

const transformRegexp: Array<[RegExp, string]> = [];
Expand Down

0 comments on commit bdb0ea9

Please sign in to comment.