Correct iteration key issue
This commit is contained in:
parent
6ebbdf0eab
commit
b5907ccd36
|
@ -35,7 +35,7 @@ var Adaptor = module.exports = function Adaptor(opts) {
|
||||||
this.details = {};
|
this.details = {};
|
||||||
|
|
||||||
_.forEach(opts, function(opt, name) {
|
_.forEach(opts, function(opt, name) {
|
||||||
if (_.include(["robot", "name", "adaptor"], opt)) {
|
if (_.include(["robot", "name", "adaptor"], name)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ var Driver = module.exports = function Driver(opts) {
|
||||||
this.details = {};
|
this.details = {};
|
||||||
|
|
||||||
_.forEach(opts, function(opt, name) {
|
_.forEach(opts, function(opt, name) {
|
||||||
if (_.include(["robot", "name", "connection", "driver"], opt)) {
|
if (_.include(["robot", "name", "connection", "driver"], name)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue