mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Remove useless assertion in find_import_path
This commit is contained in:
+3
-1
@@ -2776,7 +2776,9 @@ Array<ImportPathItem> find_import_path(Checker *c, AstPackage *start, AstPackage
|
|||||||
} else {
|
} else {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
GB_ASSERT(pkg != nullptr && pkg->scope != nullptr);
|
if (pkg == nullptr || pkg->scope == nullptr) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (pkg->kind == Package_Runtime) {
|
if (pkg->kind == Package_Runtime) {
|
||||||
// NOTE(bill): Allow cyclic imports within the runtime package for the time being
|
// NOTE(bill): Allow cyclic imports within the runtime package for the time being
|
||||||
|
|||||||
Reference in New Issue
Block a user