Drop old compatibility if statement targeting babel@6.15 and earlier (#6451)

This commit is contained in:
Mateusz Burzyński
2017-10-09 19:49:06 +02:00
committed by Henry Zhu
parent 7d6b15bba9
commit e52f6caa18

View File

@@ -52,11 +52,6 @@ const awaitVisitor = {
};
export default function(path: NodePath, file: Object, helpers: Object) {
if (!helpers) {
// bc for 6.15 and earlier
helpers = { wrapAsync: file };
file = null;
}
path.traverse(awaitVisitor, {
file,
wrapAwait: helpers.wrapAwait,