Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 13, 2019
1 parent 674e9ef commit 465d6e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-jest/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const createTransformer = (

const transformResult = babelTransform(src, babelOptions);

if (transformResult && typeof transformResult.code === 'string') {
if (transformResult) {
const {code, map} = transformResult;
if (typeof code === 'string') {
return {code, map};
Expand Down

0 comments on commit 465d6e0

Please sign in to comment.