Fixed lint errors

This commit is contained in:
Yogi 2016-02-25 21:35:09 +05:30
parent a5923a9d8e
commit bb141ee903
1 changed files with 3 additions and 2 deletions

View File

@ -120,8 +120,9 @@ Robot.prototype.connection = function(name, conn) {
str += "Renaming '" + original + "' to '" + conn.name + "'"; str += "Renaming '" + original + "' to '" + conn.name + "'";
this.log(str); this.log(str);
} }
if('adapter' in conn) if ("adapter" in conn) {
conn['adaptor'] = conn['adapter']; conn.adaptor = conn.adapter;
}
this.connections[conn.name] = initializer("adaptor", conn); this.connections[conn.name] = initializer("adaptor", conn);
return this; return this;