Fixes validation issue in initializer constructor, `!module` should be `mod`

This commit is contained in:
edgarsilva 2015-01-29 13:51:05 -06:00
parent 990184c0fa
commit e2f617c995
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ module.exports = function Initializer(type, opts) {
mod = Registry.findBy(type, opts[type]);
}
if (!module) {
if (!mod) {
Registry.register("cylon-" + opts[type]);
mod = Registry.findBy(type, opts[type]);
}