Skip to content

Commit

Permalink
Simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Aug 25, 2020
1 parent 9f79b08 commit 0719a03
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/language-html/utils.js
Expand Up @@ -398,10 +398,6 @@ function _inferScriptParser(node) {
}

function inferStyleParser(node) {
if (node.name !== "style") {
return;
}

const { lang } = node.attrMap;
if (!lang || lang === "postcss" || lang === "css") {
return "css";
Expand Down Expand Up @@ -431,7 +427,6 @@ function inferScriptParser(node, options) {
if (options && isVueNonHtmlBlock(node, options)) {
return (
_inferScriptParser(node) ||
inferStyleParser(node) ||
getParserName(node.attrMap.lang, options)
);
}
Expand Down

0 comments on commit 0719a03

Please sign in to comment.