Fixes validation issue in initializer constructor, `!module` should be `mod`
This commit is contained in:
parent
990184c0fa
commit
e2f617c995
|
@ -25,7 +25,7 @@ module.exports = function Initializer(type, opts) {
|
||||||
mod = Registry.findBy(type, opts[type]);
|
mod = Registry.findBy(type, opts[type]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!module) {
|
if (!mod) {
|
||||||
Registry.register("cylon-" + opts[type]);
|
Registry.register("cylon-" + opts[type]);
|
||||||
mod = Registry.findBy(type, opts[type]);
|
mod = Registry.findBy(type, opts[type]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue