Skip to content

Commit

Permalink
Revert "Enable strict mode and fix the TypeError"
Browse files Browse the repository at this point in the history
This reverts commit 65e402e.
  • Loading branch information
XhmikosR committed Feb 19, 2022
1 parent 006ddd6 commit a691ba6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@
"env": {
"node": true,
"es6": true
},
"rules": {
"strict": "error"
}
}
7 changes: 1 addition & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

const parser = require('@babel/parser');

/**
Expand Down Expand Up @@ -79,10 +77,7 @@ module.exports.prototype.traverse = function(node, cb) {
// Avoid visited nodes
if (key === 'parent' || !node[key]) { continue; }

if (typeof node[key] === 'object') {
node[key].parent = node;
}

node[key].parent = node;
this.traverse(node[key], cb);
}
}
Expand Down
2 changes: 0 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* eslint-env mocha */

'use strict';

const assert = require('assert');
const Walker = require('../');
const fs = require('fs');
Expand Down

0 comments on commit a691ba6

Please sign in to comment.