Skip to content

Commit

Permalink
Fix logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitchell committed Aug 22, 2022
1 parent 64bde16 commit 30b2cab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -35,16 +35,16 @@ function licensee (configuration, path, callback) {
} else {
var arborist = new Arborist({ path })
arborist.loadActual({ forceActual: true })
.catch(function (error) {
return callback(error)
})
.then(function (tree) {
var children = Array.from(tree.children.values())
if (configuration.filterPackages) {
children = configuration.filterPackages(children)
}
callback(null, findIssues(configuration, children, []))
})
.catch(function (error) {
return callback(error)
})
}
}

Expand Down

0 comments on commit 30b2cab

Please sign in to comment.