From a5923a9d8e3fbc769c1a5cbb29f4197191b3397e Mon Sep 17 00:00:00 2001 From: Yogi Date: Wed, 24 Feb 2016 16:33:19 +0530 Subject: [PATCH 1/2] Adding alternate keyword for adaptor as adapter --- lib/robot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/robot.js b/lib/robot.js index d870872..28c7853 100644 --- a/lib/robot.js +++ b/lib/robot.js @@ -120,7 +120,8 @@ Robot.prototype.connection = function(name, conn) { str += "Renaming '" + original + "' to '" + conn.name + "'"; this.log(str); } - + if('adapter' in conn) + conn['adaptor'] = conn['adapter']; this.connections[conn.name] = initializer("adaptor", conn); return this; From bb141ee903c9f2d3ffbe21ab97f7409c34d195af Mon Sep 17 00:00:00 2001 From: Yogi Date: Thu, 25 Feb 2016 21:35:09 +0530 Subject: [PATCH 2/2] Fixed lint errors --- lib/robot.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/robot.js b/lib/robot.js index 28c7853..ab7c825 100644 --- a/lib/robot.js +++ b/lib/robot.js @@ -120,8 +120,9 @@ Robot.prototype.connection = function(name, conn) { str += "Renaming '" + original + "' to '" + conn.name + "'"; this.log(str); } - if('adapter' in conn) - conn['adaptor'] = conn['adapter']; + if ("adapter" in conn) { + conn.adaptor = conn.adapter; + } this.connections[conn.name] = initializer("adaptor", conn); return this;