From 32ca31306006d54d4887549b10608dc691cab055 Mon Sep 17 00:00:00 2001 From: Toru Kobayashi Date: Wed, 19 Aug 2020 22:10:41 +0900 Subject: [PATCH] refactor: remove unnecessary return statements (#19625) --- packages/react-dom/src/events/plugins/SelectEventPlugin.js | 2 -- packages/react-dom/src/events/plugins/SimpleEventPlugin.js | 1 - 2 files changed, 3 deletions(-) diff --git a/packages/react-dom/src/events/plugins/SelectEventPlugin.js b/packages/react-dom/src/events/plugins/SelectEventPlugin.js index 8b99dbe6dbc83..bc5d7df1a4954 100644 --- a/packages/react-dom/src/events/plugins/SelectEventPlugin.js +++ b/packages/react-dom/src/events/plugins/SelectEventPlugin.js @@ -215,8 +215,6 @@ function extractEvents( case 'keyup': constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget); } - - return; } export {registerEvents, extractEvents}; diff --git a/packages/react-dom/src/events/plugins/SimpleEventPlugin.js b/packages/react-dom/src/events/plugins/SimpleEventPlugin.js index 6a2b89f97942f..fa49b84e647a9 100644 --- a/packages/react-dom/src/events/plugins/SimpleEventPlugin.js +++ b/packages/react-dom/src/events/plugins/SimpleEventPlugin.js @@ -198,7 +198,6 @@ function extractEvents( accumulateTargetOnly, ); } - return event; } export {registerSimpleEvents as registerEvents, extractEvents};