From 12d4c8ea042f069447bcf230169c598b3ba1b390 Mon Sep 17 00:00:00 2001 From: Guian Gumpac Date: Fri, 28 Jul 2023 09:31:17 -0700 Subject: [PATCH] Addressed PR comment Signed-off-by: Guian Gumpac --- .../TableauConnector/src/connectionProperties.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bi-connectors/TableauConnector/src/connectionProperties.js b/bi-connectors/TableauConnector/src/connectionProperties.js index dec2708..3071f47 100644 --- a/bi-connectors/TableauConnector/src/connectionProperties.js +++ b/bi-connectors/TableauConnector/src/connectionProperties.js @@ -1,7 +1,6 @@ (function propertiesbuilder(attr) { - var props = {}; - props["user"] = attr[connectionHelper.attributeUsername]; - props["password"] = attr[connectionHelper.attributePassword]; - - return props; + return { + user: attr[connectionHelper.attributeUsername], + password: attr[connectionHelper.attributePassword] + }; })