Skip to content

Commit

Permalink
Merge pull request #27 from netes/dont-use-block-scoped-declarations
Browse files Browse the repository at this point in the history
Use "var" instead of "let"
  • Loading branch information
ivanvanderbyl authored Jan 7, 2017
2 parents 07ce078 + 976225d commit 78ac7a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ module.exports = {
var trees = [];

if (tree) {
let versionTree = new RecastFilter(tree, null, replaceVersionString, {
var versionTree = new RecastFilter(tree, null, replaceVersionString, {
version: d3Version('d3', this.parent.nodeModulesPath)
});

Expand Down
2 changes: 1 addition & 1 deletion lib/replace-version-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var types = recast.types;
var b = recast.types.builders;

module.exports = function replaceVersionString(code, packageName, options) {
let version = options.version;
var version = options.version;

var ast = recast.parse(code);
types.visit(ast, {
Expand Down

0 comments on commit 78ac7a7

Please sign in to comment.