From a91770e9799cf87bee6ee8fe83b02d9c456482ea Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Mon, 7 Dec 2020 15:25:20 -0500 Subject: [PATCH] Decaf cleanup: remove Array.from() --- services/document-updater/app/js/DiffCodec.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/document-updater/app/js/DiffCodec.js b/services/document-updater/app/js/DiffCodec.js index 22251800b2..457ae526d0 100644 --- a/services/document-updater/app/js/DiffCodec.js +++ b/services/document-updater/app/js/DiffCodec.js @@ -9,7 +9,6 @@ // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: - * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations of null checks * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md @@ -32,7 +31,7 @@ module.exports = DiffCodec = { const ops = [] let position = 0 - for (const diff of Array.from(diffs)) { + for (const diff of diffs) { const type = diff[0] const content = diff[1] if (type === this.ADDED) {