From e52f6caa18f8759f9d538034af215f4cb01acaa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Mon, 9 Oct 2017 19:49:06 +0200 Subject: [PATCH] Drop old compatibility if statement targeting babel@6.15 and earlier (#6451) --- packages/babel-helper-remap-async-to-generator/src/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/babel-helper-remap-async-to-generator/src/index.js b/packages/babel-helper-remap-async-to-generator/src/index.js index 92f48dc585..a40f7c67b5 100644 --- a/packages/babel-helper-remap-async-to-generator/src/index.js +++ b/packages/babel-helper-remap-async-to-generator/src/index.js @@ -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,