Skip to content

Commit

Permalink
rework issue FullHuman#148 to avoid returning undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ahus1 committed Apr 12, 2019
1 parent bb642a8 commit 3aec7ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class Purgecss {

const extractorObj = extractors.find(extractor =>
extractor.extensions.find(ext => filename.endsWith(ext))
) || DefaultExtractor
) || { extractor: DefaultExtractor }
return extractorObj.extractor
}

Expand Down

0 comments on commit 3aec7ac

Please sign in to comment.