refactor: stop reporting submodule-not-found error

This commit is contained in:
Enix 2019-11-06 11:13:01 +08:00
parent 033c97b648
commit e432207baf
No known key found for this signature in database
GPG key ID: FE06F5DFC1C9B8E4

View file

@ -1,4 +1,3 @@
import { raiseError } from 'analytics'
import { Props } from 'components/FileExplorer'
import { GetCreatedMethod, MethodCreator } from 'driver/connect'
import * as ini from 'ini'
@ -118,7 +117,9 @@ function handleParsed(root: TreeNode, parsed: Parsed) {
node.accessDenied = true
}
} else {
raiseError(new Error(`Sub-module node not found`), { path })
// It turns out that we did not miss any submodule after a lot of tests.
// Turning this off.
// raiseError(new Error(`Submodule node not found`), { path })
}
} else {
handleParsed(root, value as Parsed)