chore(core): Syntax change for better test coverage
This commit is contained in:
parent
af89117598
commit
698fb7d942
1 changed files with 2 additions and 2 deletions
|
@ -584,9 +584,9 @@ Pattern.prototype.resolveDependencies = function (graph = this.config.dependenci
|
|||
let dependency = this.config.inject[i]
|
||||
if (typeof this.config.dependencies[i] === 'undefined') this.config.dependencies[i] = dependency
|
||||
else if (this.config.dependencies[i] !== dependency) {
|
||||
if (typeof this.config.dependencies[i] === 'string')
|
||||
if (typeof this.config.dependencies[i] === 'string') {
|
||||
this.config.dependencies[i] = [this.config.dependencies[i], dependency]
|
||||
else if (Array.isArray(this.config.dependencies[i])) {
|
||||
} else if (Array.isArray(this.config.dependencies[i])) {
|
||||
if (this.config.dependencies[i].indexOf(dependency) === -1)
|
||||
this.config.dependencies[i].push(dependency)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue