Correct iteration key issue

This commit is contained in:
Andrew Stewart 2014-12-17 16:36:48 -08:00
parent 6ebbdf0eab
commit b5907ccd36
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ var Adaptor = module.exports = function Adaptor(opts) {
this.details = {};
_.forEach(opts, function(opt, name) {
if (_.include(["robot", "name", "adaptor"], opt)) {
if (_.include(["robot", "name", "adaptor"], name)) {
return;
}

View File

@ -36,7 +36,7 @@ var Driver = module.exports = function Driver(opts) {
this.details = {};
_.forEach(opts, function(opt, name) {
if (_.include(["robot", "name", "connection", "driver"], opt)) {
if (_.include(["robot", "name", "connection", "driver"], name)) {
return;
}