We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d38a3a commit d3d3fc2Copy full SHA for d3d3fc2
1 file changed
javascript/ql/lib/semmle/javascript/Modules.qll
@@ -227,10 +227,10 @@ abstract class Import extends AstNode {
227
*/
228
pragma[nomagic]
229
final DataFlow::Node getImportedModuleNodeIfUnambiguous() {
230
- if
+ result = this.getImportedModuleNode() and
231
+ not (
232
this.isDefaultImport() and
233
this.getImportedModule().(ES2015Module).hasBothNamedAndDefaultExports()
- then none()
234
- else result = this.getImportedModuleNode()
+ )
235
}
236
0 commit comments