Remove useless assertion in find_import_path

This commit is contained in:
gingerBill
2018-12-30 15:40:45 +00:00
parent 5ba3d90893
commit 6d3203c11b
+3 -1
View File
@@ -2776,7 +2776,9 @@ Array<ImportPathItem> find_import_path(Checker *c, AstPackage *start, AstPackage
} else {
continue;
}
GB_ASSERT(pkg != nullptr && pkg->scope != nullptr);
if (pkg == nullptr || pkg->scope == nullptr) {
continue;
}
if (pkg->kind == Package_Runtime) {
// NOTE(bill): Allow cyclic imports within the runtime package for the time being