fix: fix an attempt to use null value in DocumentStore.resolveImport
caused by missing files or weird file path starting e.g. ``` pub const abc = @import(".////abc.zig"); ```
This commit is contained in:
parent
54be6d92c6
commit
481903e72a
@ -953,7 +953,7 @@ pub fn resolveImport(self: *DocumentStore, handle: *Handle, import_str: []const
|
||||
|
||||
for (handle.imports_used.items) |uri| {
|
||||
if (std.mem.eql(u8, uri, final_uri)) {
|
||||
return self.getHandle(final_uri).?;
|
||||
return self.getHandle(final_uri) orelse return null;
|
||||
}
|
||||
}
|
||||
// The URI must be somewhere in the import_uris or the package uris
|
||||
|
Loading…
Reference in New Issue
Block a user