Skip to content

Commit

Permalink
fix shortcut condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Nov 3, 2018
1 parent 1a541e1 commit 22aee1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/dependencies/ContextDependencyHelpers.js
Expand Up @@ -120,9 +120,9 @@ ContextDependencyHelpers.create = (
range = [part.range[0], param.range[1]];
value = value + "`";
} else if (
param.expression &&
param.expression.type === "TemplateElement" &&
param.expression.value[param.templateStringKind] === value
part.expression &&
part.expression.type === "TemplateElement" &&
part.expression.value.raw === value
) {
// Shortcut when it's a single quasi and doesn't need to be replaced
return;
Expand Down

0 comments on commit 22aee1e

Please sign in to comment.