Merge pull request #3447 from nkzawa/patch-0

Stop traversing when target type is found
This commit is contained in:
Logan Smyth 2016-04-06 18:31:51 -07:00
commit e4d6d42041

View File

@ -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();
}
}