From f3e634c59e8928ab170a9bfa9d056cf0f8778064 Mon Sep 17 00:00:00 2001 From: Sam Gaus Date: Thu, 24 Mar 2016 12:46:39 +0000 Subject: [PATCH] Removes impossible test for extension on ES5 components --- lib/util/Components.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/util/Components.js b/lib/util/Components.js index 028dc708b0..1d9b06a5d8 100644 --- a/lib/util/Components.js +++ b/lib/util/Components.js @@ -144,10 +144,6 @@ function componentRule(rule, context) { * @returns {Boolean} True if the node is a React ES5 component, false if not */ isES5Component: function(node) { - if (utils.isExplicitComponent(node)) { - return true; - } - if (!node.parent) { return false; }