Merge pull request #3447 from nkzawa/patch-0
Stop traversing when target type is found
This commit is contained in:
commit
e4d6d42041
@ -104,7 +104,7 @@ traverse.removeProperties = function (tree) {
|
||||
function hasBlacklistedType(path, state) {
|
||||
if (path.node.type === state.type) {
|
||||
state.has = true;
|
||||
path.skip();
|
||||
path.stop();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user