Skip to content

Commit 22496dc

Browse files
committed
fix: @putout/engine-runner: remove useless should skip
1 parent f6942ce commit 22496dc

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

packages/engine-runner/lib/merge-visitors.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ const {
1616
pathStore,
1717
} = require('./store');
1818

19-
const shouldSkip = (a) => !a.parent;
2019
const {merge} = traverse.visitors;
21-
2220
const {assign} = Object;
2321

2422
const parse = (name, plugin, options) => {
@@ -87,7 +85,7 @@ module.exports = (pluginsToMerge, {fix, shebang, template}) => {
8785
const entries = Object.entries(pushed);
8886

8987
const visitor = {
90-
shouldSkip,
88+
//shouldSkip,
9189
...merge(mergeItems),
9290
};
9391

packages/engine-runner/test/runner.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,13 +1026,10 @@ test('putout: runner: runPlugins: override traverse', (t) => {
10261026
plugins,
10271027
});
10281028

1029-
const shouldSkip = stub().withName('shouldSkip');
1030-
10311029
const expected = [
10321030
ast, {
10331031
_exploded: true,
10341032
_verified: true,
1035-
shouldSkip,
10361033
},
10371034
];
10381035

0 commit comments

Comments
 (0)