Drop old compatibility if statement targeting babel@6.15 and earlier (#6451)
This commit is contained in:
committed by
Henry Zhu
parent
7d6b15bba9
commit
e52f6caa18
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user