From 53d79d86a94cb370ecd6e411f31da220d8f725cc Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Fri, 8 May 2020 11:21:36 -0400 Subject: [PATCH] Decaf cleanup: remove Array.from() --- services/document-updater/app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/document-updater/app.js b/services/document-updater/app.js index 9e772d3e9a..da2e745880 100644 --- a/services/document-updater/app.js +++ b/services/document-updater/app.js @@ -1,6 +1,5 @@ /* * decaffeinate suggestions: - * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS103: Rewrite code to no longer use __guard__ * DS207: Consider shorter variations of null checks @@ -211,7 +210,7 @@ const watchForEvent = (eventName) => ) const events = ['connect', 'ready', 'error', 'close', 'reconnecting', 'end'] -for (const eventName of Array.from(events)) { +for (const eventName of events) { watchForEvent(eventName) }