Skip to content
Permalink
Browse files

fix: Do not crash when nyc is run inside itself.

  • Loading branch information...
coreyfarrell committed Apr 16, 2019
1 parent a921dfa commit d861d8589cbbc50fc1920d154a9262d62e9d5695
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
@@ -223,7 +223,7 @@ class ProcessDB {
infos.forEach(info => {
if (info.parent) {
const parentInfo = infoByUid.get(info.parent)
if (parentInfo.children.indexOf(info.uuid) === -1) {
if (parentInfo && !parentInfo.children.includes(info.uuid)) {
parentInfo.children.push(info.uuid)
}
}

0 comments on commit d861d85

Please sign in to comment.
You can’t perform that action at this time.