Skip to content

Commit

Permalink
remove unused code / comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerturdenpants authored and Turbo87 committed Sep 30, 2019
1 parent 6f9e112 commit e93e55e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions transforms/angle-brackets/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,9 @@ function transformToAngleBracket(env, fileInfo, config) {
}

if (_valueType === 'PathExpression') {
_value = b.mustache(b.path(a.value));
_value = b.mustache(a.value);
} else if (_valueType === 'SubExpression') {
if (a.value.hash.pairs.length > 0) {
// _value = b.mustache(a.value.path.original, a.value.params, a.value.hash);
a.value.type = 'MustacheStatement';
_value = a.value;
} else {
Expand Down Expand Up @@ -488,13 +487,5 @@ function transformToAngleBracket(env, fileInfo, config) {
return transformNode(node);
}
},

ElementNode(node) {
node.attributes.forEach(a => {
if (a.value && a.value.chars === '' && a.value.chars === _EMPTY_STRING_) {
a.value = b.text(_EMPTY_STRING_);
}
});
},
};
}

0 comments on commit e93e55e

Please sign in to comment.