return promise in requireModule

This commit is contained in:
Pooya Parsa 2017-05-20 13:47:14 +04:30
parent aca45a15b0
commit d94fddeb38

View File

@ -78,9 +78,9 @@ class Module {
requireModule (moduleOpts) { requireModule (moduleOpts) {
if (this.modules.indexOf(moduleOpts) !== -1 || this.modules.indexOf(moduleOpts.src) !== -1) { if (this.modules.indexOf(moduleOpts) !== -1 || this.modules.indexOf(moduleOpts.src) !== -1) {
return return false
} }
this.addModule(moduleOpts) return this.addModule(moduleOpts)
} }
addModule (moduleOpts) { addModule (moduleOpts) {