Skip to content

Commit

Permalink
remove check for map
Browse files Browse the repository at this point in the history
  • Loading branch information
brentonhouse committed Feb 28, 2020
1 parent 2070e9f commit 603ead5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsanalyze.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ exports.analyzeJs = function analyzeJs(contents, opts = {}) {
const transformed = babel.transformFromAstSync(ast, contents, options);

// if the file is ignored by babel config, transformed will be null
if (transformed && transformed.code && transformed.map) {
if (transformed && transformed.code) {

results.contents = transformed.code;

Expand Down

0 comments on commit 603ead5

Please sign in to comment.