fix: handle non-exist git module

This commit is contained in:
EnixCoda 2018-11-01 15:21:31 +08:00
parent de7e8b8c8c
commit cbb63db605
No known key found for this signature in database
GPG key ID: 6825847C88AA329A

View file

@ -35,7 +35,9 @@ function resolveGitModules(root, blobData) {
const { url, path } = value
// for now, handle modules at root only
const node = root.contents.find(node => node.path === path)
node.url = url
if (node) {
node.url = url
}
})
}
}