mirror of
https://github.com/enso-org/enso.git
synced 2024-11-25 10:43:02 +03:00
Remove unnecessary isntancdeof
This commit is contained in:
parent
5a74cc1e0c
commit
92a07254c7
@ -102,8 +102,8 @@ public final class AmbiguousImportsAnalysis implements MiniPassFactory {
|
|||||||
public Module transformModule(Module moduleIr) {
|
public Module transformModule(Module moduleIr) {
|
||||||
var newImports = new ArrayList<Import>();
|
var newImports = new ArrayList<Import>();
|
||||||
moduleIr.imports().foreach(imp -> {
|
moduleIr.imports().foreach(imp -> {
|
||||||
if (imp instanceof Import.Module impMod) {
|
var errs = analyseAmbiguousSymbols(imp);
|
||||||
var errs = analyseAmbiguousSymbols(impMod);
|
if (!errs.isEmpty()) {
|
||||||
newImports.addAll(errs);
|
newImports.addAll(errs);
|
||||||
} else {
|
} else {
|
||||||
newImports.add(imp);
|
newImports.add(imp);
|
||||||
|
Loading…
Reference in New Issue
Block a user