From 7748765ce05e5d7f4b2c99bf8c3dbb43117cbdb0 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 13 Jun 2018 20:58:02 -0600 Subject: [PATCH] Clean up code for updated getConditionalValue() --- core/menu_util.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/menu_util.js b/core/menu_util.js index a86690e5..4a4665b8 100644 --- a/core/menu_util.js +++ b/core/menu_util.js @@ -221,11 +221,7 @@ function handleAction(client, formData, conf, cb) { } function handleNext(client, nextSpec, conf, cb) { - assert(_.isString(nextSpec) || _.isArray(nextSpec)); - - if(_.isArray(nextSpec)) { - nextSpec = client.acs.getConditionalValue(nextSpec, 'next'); - } + nextSpec = client.acs.getConditionalValue(nextSpec, 'next'); // handle any conditionals const nextAsset = asset.getAssetWithShorthand(nextSpec, 'menu'); // :TODO: getAssetWithShorthand() can return undefined - handle it!