From aee48b75db6ef2a69e697b54b8e078a1e95906da Mon Sep 17 00:00:00 2001 From: jos Date: Sun, 17 Dec 2017 21:38:23 +0100 Subject: [PATCH] Removed a TODO --- src/eson.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/eson.js b/src/eson.js index 4ec7ccd..feb78d6 100644 --- a/src/eson.js +++ b/src/eson.js @@ -180,11 +180,7 @@ export function expandOne (eson, path, expanded = true) { * @return {ESON} */ export function expandPath (eson, path, expanded = true) { - let updatedEson = eson - - // TODO: rewrite to path.reduce(...) - - updatedEson = expandOne(updatedEson, [], expanded) // expand root + let updatedEson = expandOne(eson, [], expanded) // expand root for (let i = 0; i < path.length; i++) { const pathPart = path.slice(0, i + 1)